Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get a record with the latest Date
Message
From
04/12/2000 12:29:47
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00448872
Message ID:
00448908
Views:
14
>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
Select * From mytable Where product = ?Parm1 
  And ChangeDate In 
   (Select Max(ChangeDate) 
     From mytable 
     Where product = ?Parm1)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform