Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing records from a SQL query
Message
From
21/01/2010 17:06:16
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01445297
Message ID:
01445347
Views:
18
>I figured out why the GROUP BY approach was so slow. You were trying to get the same result as the original query, since you were grouping by PK and ChildPK.
>
>Either my or Boris solution will work (or any of the approaches listed in the referenced blogs). You don't need to save the result in the temp table either.
>
>My approach probably would be easiest to introduce since it only requires adding one extra field to the original query.

Thanks, I will have to take a look at this one later.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform