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.
| Author |
Topic |
|
Masum7
Starting Member
33 Posts |
Posted - 2009-06-04 : 00:07:02
|
| I have a table like this:table resource:id userid 1 1 2 13 24 35 36 37 18 2Here id is pkey. Now I want to select rows from the table in round robin fashion based with respect to userid.I mean the select query will select id, userid in such a way output is like this:1 13 24 32 18 25 37 16 3So you see from the result userid comes 1, 2, 3 then again 1, 2, 3. Then 2 finishes. It comes only with 3.Masum |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
|
|
|