Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing the last child record from same parent if seque
Message
 
 
À
27/06/2015 20:04:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01621484
Message ID:
01621535
Vues:
39
>I ended up using COUNT(*) as RowTotal and using:
>
>
>RowNumber<RowTotal
>
>
>...in the second portion. Is there is a better way, you may let me know.

You can use some arbitrary number, say, where RowNumber between 2 and 1000 and otherwise the condition will remain exactly the same as my original select statement.
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