Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Performance - union
Message
 
 
À
02/02/2012 08:31:29
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Desktop
Divers
Thread ID:
01534182
Message ID:
01534279
Vues:
36
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform