Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Going further with the group by
Message
De
15/09/2010 13:24:37
 
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:
01481304
Message ID:
01481307
Vues:
25
>
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform