I\'m looking for a way to sequentially number rows in a result set (not a table). In essence, I\'m starting with a query like the following:
SELECT
For SQL server, check out the RANK function.