Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a record with the latest Date
Message
De
04/12/2000 12:29:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00448872
Message ID:
00448908
Vues:
18
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform