Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LEFT JOIN vs FULL JOIN
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01514564
Message ID:
01514610
Views:
40
>>Hi,
>>
>>I am working on joining two tables into a query and it looks like Selecting From Table1 and FULL JOIN Table2 is the same as Select from Table2 and LEFT JOINT Table1. Is there advantage using one or the other? The tables/queries Table1 and Table2 are very small (less than 100 records) so I am not sure there would be difference in speed. But I am wondering if one is more practical then the other. TIA.
>
>The results returtned by LEFT JOIN vs. FULL JOIN are different when you have non-matching records in both tables. If you only have, say, records in Table1 and some of them don't have matching records in Table2, but the opposite is not true, then LEFT JOIN and FULL JOIN will return the exactly same result and if you can anticipate this situation, it's better to use LEFT JOIN then.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform