Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JOIN vs WHERE
Message
De
17/06/2009 17:35:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01406428
Message ID:
01406770
Vues:
46
>>Many thanks to all who replied.
>>
>>To summarize the responses............
>>
>>When I have
>>
>>SELECT fields FROM yyy LEFT JOIN xxx ON condition
>>
>>and later have a WHERE clause involving a field in yyy
>>it essentially turns the query into an INNER JOIN
>>
>>is this right?
>
>Nope, it turns to INNER JOIN only if in WHERE you reference XXX table.
>And that is because NULLs can't be equal or different to anything even to NULLs.

Good thing I verified. I looked back and saw that my original query referenced XXX.
And your explanation makes enough sense that it might even penetrate.

THANKS again to you and all who responded.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform