Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get a record with the latest Date
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00448872
Message ID:
00448878
Views:
8
>In SQL Server, What would be my Statement to retreive a record with the latest date ?
>
>Someting Like This : Select * From MyTable Where Product = ?Parm1 And ???ChangedDate Is The Latest ???
>
>Thanks for your help

I think this may work:

SELECT TOP 1 *
FROM MyTable
WHERE Product = ?Parm1
ORDER BY ChangedDate DESC

Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform