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 - 2001-07-18 : 08:11:13
|
Jeremy writes "Based upon the following tableDATE PID07/15/2000 307/15/2000 407/15/2000 807/15/2000 307/15/2000 307/15/2000 607/15/2000 607/15/2000 408/15/2000 308/15/2000 308/15/2000 408/15/2000 508/15/2000 908/15/2000 908/15/2000 4 I need to be able to return the top 2 PIDS in each month/year. By using the TOP function I just get two records when I need to get the top two in July 2000, August 2000, etc. Any suggestions?" |
|
|
|
|