Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JOIN vs WHERE
Message
 
 
À
17/06/2009 16:01:10
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:
01406728
Vues:
56
>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.
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