Home Forums SQL Server 2005 T-SQL (SS2K5) Sequencing RE: Sequencing
Kent Waldrop
Hall of Fame
Points: 3064
More actions
June 11, 2008 at 6:09 am
#827181
Please give a look at the "ranking" functions such as "row_number()" and "rank()" in books online. Pay particular attention to use of the OVER() clause in conjunction with both the PARTITION BY and ORDER BY clauses.
Kent