Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing records from a SQL query
Message
 
 
À
21/01/2010 16:13:51
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:
01445297
Message ID:
01445324
Vues:
16
>>One more idea.
>>
>>Get the current result into a temp table, add index on PK and ChildPK fields (Or index on PK and include ChildPK - may be better) and then try group by.
>
>Yes, that is the next thing to do. I would have liked to avoid that as I would have wanted one SQL to do it all.

Can you compare the actual execution plans with and without group by to find out what takes that long?
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