Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 REturning a specified number of Rows per attribute

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-18 : 11:12:07
Andrew Blake writes "Question by example

Say we have 10 events recorder for every day in the month of January, how can we return (in a single query)
5 events for each day i.e. return 5 * 31 = 155 events 5 on 1st, 5 on 2nd and so on"
   

- Advertisement -