Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by with an order field
Message
De
15/09/2010 13:06:34
 
 
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:
01481294
Message ID:
01481300
Vues:
21
>Are you working with SQL Server?
>
>If yes, then
>
>;with cte as (select top (10) Event.Ro_No, Event.[DateTime] from Event ORDER BY Event.DateTime)
>
>select max(Event.DateTime) as LastDate, Event.Ro_No from cte
Hugo's solution resolves the issue.

That one was against a SQL Anywhere backend.
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