Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
 
 
À
19/04/2006 12:13:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01114622
Message ID:
01114639
Vues:
17
>>
SELECT CustomerID, MAX(DateTimeField) AS MaxDT FROM mytable GROUP BY CustomerID
>How does this ensure that it's the max/latest for a given Cust_ID?

Hi Terry,

The 'GROUP BY CustomerID' gives 1 record per CustomerID and 'MAX(DateTimeField)' returns the latest date for each CustomerID.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform