Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't figure out SQL
Message
From
28/11/2000 07:12:20
 
 
To
28/11/2000 07:03:33
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00446070
Message ID:
00446071
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform