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 |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-08-10 : 07:47:04
|
Umed writes "I want to retrive data from a table say TABLE1(ID,NAME).Table has following data:ID NAME1 A1 B1 C1 H2 R2 T2 U2 P2 J3 L3 J4 G5 W5 Q5 SI want to select TOP N (say N=3) rows for each ID (1,2,3,4,5),i.e. output would be likeID NAME1 A1 B1 C2 R2 T2 U3 L3 J4 G5 W5 Q5 SSQL query should not be specific to oracle or SQL Server or other DB, but a general one...Thnx." |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-08-10 : 07:54:34
|
http://weblogs.sqlteam.com/mladenp/archive/2005/08/01/7421.aspxnumber 2.Go with the flow & have fun! Else fight the flow |
|
|
|
|
|