I have one doubt.
Suppose my table contains 1000 records, I need to write a sql statement to group table in equal number of records.
How many groups?
Based on a specific order?
You need to have an order by clause and group the records...Is that your exact requirement?