Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax help
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01398006
Message ID:
01398014
Vues:
54
>Nevermind..I got it..
>
>
>select EDPNo, CaptureDate, ALertFlg
>from (select EDPNo, CaptureDate, ALertFlg,  row_Number() over (partition by edpno Order by CaptureDate DESC) as RowNumber 
>from ItemAlertFlgAudit ) D 
>where RowNumber = 1
>
You're welcome. Watch out for the same dates within the group, this query will return one random record.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform