Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fewer steps to get to a certain record in a table?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00533040
Message ID:
00534737
Vues:
11
>I have a table full of records with a date field in each record. The date field is D 8. For example I see 02/07/1999 when I browse the table. Of course there are other fields in the record, but the date field is the one I need to use to find the last record for a given year.
SELECT TOP 1 * FROM c1 WHERE YEAR(datefield) = 1995 ORDER BY datefield DESC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform