Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Going further with the group by
Message
De
15/09/2010 13:25:45
 
 
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:
01481308
Vues:
16
>You will need to use EXISTS criteria, e.g.
>
>
>SELECT TOP 10 Event.RO_No,Min(Event.DateTime) AS LastUpdate
> FROM Event
> where exists (select 1 from RO where RO.Ro_No = Event.Ro_No)
> GROUP BY Event.RO_No
>
>and then join with the RO the same way.
> ORDER BY MIN(Event.Datetime

Thanks, this is also another approach. I will take the one from Borislav for now. When I read it, it find it much simpler. Not sure however if it is more optimized.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform