Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Going further with the group by
Message
From
15/09/2010 13:24:37
 
 
To
15/09/2010 13:22:56
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01481304
Message ID:
01481307
Views:
26
>
>SELECT FirstName
>       FROM (SELECT TOP 10 Event.RO_No,
>                           MAX(Ro.FirstName)   AS FirstName,
>                           Min(Event.DateTime) AS LastUpdate
>                    FROM Event
>             INNER JOIN RO ON Event.RO_No=RO.RO_No
>             GROUP BY Event.RO_No
>             ORDER BY MIN(Event.Datetime)) Temp
>
Right, this was so simple. I got so into those formulas since a few days that I didn't even thing about that one.

Thanks
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