Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First and last based on same SQL
Message
From
10/10/2014 12:36:25
 
 
To
10/10/2014 12:13:25
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01609079
Message ID:
01609149
Views:
33
>Simplicity would be a matter of opinion, I think... Anyway, when I ran the execution plan on the same data with these two statements in a batch and no Client table involved, it reported relative query costs of 61% for subquery approach and 39% for no subqueries. Since you have larger data at your hands you could check to see how they both escalate.

Thanks
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
Reply
Map
View

Click here to load this message in the networking platform