Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query question
Message
De
13/11/2009 08:55:43
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01434430
Message ID:
01434593
Vues:
38
Thanks, Naomi

Your method works fine, but, if I understand correctly, it won't work with SQL Server 2000, so Sergey'd method would be helpful there.
Is that correct?
>>SELECT t1.sono, t1.tcode, t1.tdate ;
FROM mytable t1 ;
WHERE t1.tdate = (SELECT MAX(tdate) FROM mytable t2 ;
WHERE t1.sosno = t2.sono)
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform