Home Forums SQL Server 7,2000 T-SQL Top N across groupings RE: Top N across groupings
PW-201837
SSC-Insane
Points: 20805
More actions
March 1, 2005 at 11:03 am
#544657
What if there's a tie for revenue ?
If there's a tie, the sub-query will return you top 2 rows, but if you join that based solely on Revenue, you can & will get more than 2 rows per state in the resultset.