Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't figure out SQL
Message
De
28/11/2000 07:12:20
 
 
À
28/11/2000 07:03:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00446070
Message ID:
00446071
Vues:
13
You want to have all the records for each user or just the record with the latest datetime for each user ?

>I have the following table:
>
>TL_USER C(25)
>TL_DATE DATETIME
>
>I want to run a single SELECT statement that will group TL_USER but display it in DESCENDING TL_DATE order, so I get the latest DATETIME for each user.
>
>Any ideas?
>I have tried:
>
>SELECT *;
>FROM transferlog;
>GROUP BY tl_user;
>ORDER BY tl_date DESC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform