Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query Nth Row
Message
De
02/09/2005 15:35:26
 
 
À
02/09/2005 14:35:02
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Divers
Thread ID:
01046354
Message ID:
01046386
Vues:
17
>For a given order of rows in a SQL Server table ( I.e. the natural order or the order an ORDER BY clause would generate ), is it possible to efficiently query the Nth row in the table?
>
>Thanks,
>Bill

Incomplete and Not extremely efficient:
SELECT TOP 1 * FROM
 (SELECT TOP N * FROM TABLE1 ORDER BY clause) X ORDER BY clause DESC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform