Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting top occurrence of master table
Message
 
 
To
26/08/2010 14:38:15
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01478636
Message ID:
01478679
Views:
19
>Thanks, I was able to find something:
>
>
>SELECT Parent.Numero,ParentVersion.Title FROM Parent
>INNER JOIN Child ON Parent.Numero=Child.NoParent 
>WHERE Child.Numero = 
> (SELECT TOP 1 Numero FROM Child Child2
> WHERE Child2.NoParent=Parent.Numero
> ORDER BY Child2.ModDate DESC)
>
Yes, that was one of the solutions I listed (Message ID: 1478675) - not the most performant as I know.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform