Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group BY with two fields
Message
From
15/09/2010 12:34:57
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01481287
Message ID:
01481292
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform