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 |
|
hasanali00
Posting Yak Master
207 Posts |
Posted - 2005-04-23 : 12:37:14
|
hiIf I have a table likeid username points1 user1 222 user1 183 user1 304 user2 10 I want to return upto 2 rows for each user which have the highest points.SO for user1, I want to return rows 1 & 3For user2, I want to return row 4.Would be grateful, if u can tell me how to do this.regards |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
|
|
|
|
|