Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JOIN vs WHERE
Message
De
18/06/2009 13:05:53
 
 
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:
01406920
Vues:
63
>>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?
>
>RIGHT!!!!!!!!!!!!!!!!!!!
>
>You got it!!!!!!!!!!!!!!!
>
>UPDATE.
>
>Now after reviewing Borislav's response I see I didn't pay enough attention.
>
>Only if you reference XXX table in the WHERE the query will act as an INNER JOIN.


Only if you reference XXX table FOR NOT NULL VALUES in the WHERE the query will act as an INNER JOIN.

next is not like to an INNER JOIN
...
LEFT JOIN XXX ...
WHERE XXX.field IS NULL
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform