Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WHERE IN approach
Message
From
28/02/2017 12:21:56
 
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2014
OS:
Windows 8.1
Network:
Windows Server 2012
Miscellaneous
Thread ID:
01648591
Message ID:
01648625
Views:
26
>Quite possibly, yes.
>
>One thing...on % cost for the execution operators....those are estimates and not exact values.
>
>You might want to look at Time and IO statistics.
>
>If you do this...
>
>SET STATISTICS IO ON
>SET STATISTICS TIME ON
>
>And then run the query, in the messages area you'll get some good numbers to measure.
>
>Any evaluation of execution operator cost %s should also be followed by an evaluation of the actual IO and time statistics.

Thanks, this is good to know. For now, the hardcoding sequence of the WHERE clause works fine and highly performing. But, knowing EXISTS could be considered is good to know.
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