Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JOIN vs WHERE
Message
 
 
To
17/06/2009 16:01:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01406428
Message ID:
01406728
Views:
57
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform