Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group BY with two fields
Message
De
15/09/2010 12:34:57
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01481287
Message ID:
01481292
Vues:
26
>It's not clear what DateTime value you need. The latest one?
>
>SELECT Event.RO_No, MAX(Event.DateTime) AS LatestDateTime FROM Event GROUP BY Event.RO_No
>
In this case the latest one would do as there can only be one unique value per RO_No. So, using it to MAX() the value would solve the issue.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform