Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select last 50 records from a table into another table
Message
De
16/07/1997 11:51:19
 
 
À
16/07/1997 05:10:34
Ron Tse-Jung Huang
Leader Professional Consulting
Shin-Chu, Taiwan
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00040160
Message ID:
00040237
Vues:
25
>I have a table with hundreds of records, which can be divided into three groups. What I am going to do is to select the last 50 records for a group, let's say group A,from this table. Is it possible to issue a SQL command and let the thing done? Thanks!


SELECT TOP 50
...

gives you first 50 records. To have the last 50 you can do something like

SELECT TOP 50
...
ORDER BY ... DESC
...

Claude
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform