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

Click here to load this message in the networking platform