Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting top occurrence of master table
Message
 
 
À
26/08/2010 14:38:15
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01478636
Message ID:
01478679
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform