Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Earliest date
Message
 
À
25/07/2011 17:17:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01519110
Message ID:
01519172
Vues:
37
>Hi All:
>
>I have a table of deliveries of widgets to various customers.
>
>
>Cust    Delivery Date
>1111   3/1/09
>1111   4/1/09
>2222   3/2/09
>3333   3/1/09
>3333   4/5/09
>
>
>How do I say:
>
>Select the 1 record for each customer containing the earliest delivery date?
>
>Thanks,
>
>Yossi
SELECT Cust, MIN(Delivery) AS Delivery;
 FROM  YourTable;
 GROUP BY Cust;
 INTO  CURSOR crsSelect
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform