Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Performance - union
Message
 
 
To
02/02/2012 08:31:29
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Desktop
Miscellaneous
Thread ID:
01534182
Message ID:
01534279
Views:
34
>The original statement was Re: Performance - union Thread #1534182 Message #1534224 : The EXISTS can be replaced with LEFT JOIN
>
>(1) I do not see why you would need a LEFT JOIN - if you do you have to add : where .. is not null
>(2) You cannot just replace it. You need to add DISTINCT
>


The statement meant (not written) was that LEFT JOIN with IS NULL can be replaced with NOT EXISTS.

INNER JOIN and EXISTS are not equivalent if we're talking about 1:many or many to many type of relationship.
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