Aug
24th
Tue
24th
How to dynamically number rows in a SELECT Transact-SQL statement
This article describes how to dynamically rank rows when you perform a SELECT statement by using a flexible method, which may be the only possible solution and which is faster than the procedural solution.