How to group depending on number of records

Database
N/A

How to group depending on number of records

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.

Tags (1)
2 REPLIES
Junior Contributor

Re: How to group depending on number of records

How many groups?

Based on a specific order?

Enthusiast

Re: How to group depending on number of records

You need to have an order by clause and group the records...Is that your exact requirement?