John's Technical Blog
Showing posts with label
SQL: Row Number Example
.
Show all posts
Showing posts with label
SQL: Row Number Example
.
Show all posts
Tuesday, 22 September 2009
SQL: Row Number Example
SELECT
FirstName,
LastName,
[Row Number]=
ROW_NUMBER() OVER(ORDER BY SalesYTD DESC), SalesYTD
FROM x
Older Posts
Home
Subscribe to:
Posts (Atom)