Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ordinal number
Message
 
 
À
29/05/2015 15:47:23
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01620360
Message ID:
01620363
Vues:
49
>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.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform