Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ordinal number
Message
From
29/05/2015 15:59:39
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01620360
Message ID:
01620364
Views:
47
>>I'm extracting rows from a table and ordering the result based on idcol, an identity column.
>>I want to add a column to the resultant set that shows what position the row holds in the set.. 1, 2, 3, etc.
>>How best to do that?
>
>Check ROW_NUMBER() function in BOL.

Thanks, Naomi. I found the answer.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Reply
Map
View

Click here to load this message in the networking platform