Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing records from a SQL query
Message
 
 
To
21/01/2010 16:13:51
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01445297
Message ID:
01445324
Views:
15
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform