Okay, this is it. JOIN and INNER JOIN are just the same. Don't know why
the SQL standards took that for granted. LEFT JOIN also would work just
fine as well as JOIN as long as you know what you are doing. It's
confusing, isn't it. Okay, let's get back. INNER JOIN is the same as
JOIN. LEFT JOIN would also be the same thing as JOIN. But putting the
OUTER JOIN construct would give you different results depending on what
you want to do.

Suppose you have two tables A, and B. Now, if you select ALL records in
table A that correspond to the same rows as in table B related with some
key columns, that is called a cartesian relationship.
One to one relationship would give you all records in table A that have the
same key values as in table B. JOIN or LEFT JOIN or simply JOIN would
work well.

Now, here's the difference. Case 1. We want back all rows in table A and
also all those in table B that have the same key columns in the ON xxx =
yyy part of the SQL statement, but want also to include those rows in table
B that DO NOT match the key criteria. Those rows will be returned to you
with NULL values. So you'll know they are not in table B.

Case 2. RIGHT OUTER JOIN works in the opposite way. You will get all rows
in table B as well as in table A that coincide with the key columns but
you'll also get NULL rows in table A that ARE NOT in table B. So you will
know what is missing in table A that is not in table B.

Got it?

Javier.



El vie, 15 jul 2022 a las 11:41, jerry ven (<jerryven95@xxxxxxxxx>)
escribió:

Hi,

For the below statement :-

"They simply are not the same and would give different results
depending on what you want back. "


Does it refer with respect to 'INNER JOIN' and 'JOIN' ?

or does it refer to 'LEFT OUTER JOIN' and 'RIGHT OUTER JOIN ' here ?

Could you please clarify ?


Thanks.





On Fri, 15 Jul 2022 at 22:53, Javier Sanchez <
javiersanchezbarquero@xxxxxxxxx> wrote:

LEFT OUTER JOIN and RIGHT OUTER JOIN are a different thing. The set
theory is the base of those constructs. You need to study set theory.a
little more. They simply are not the same and would give different
results
depending on what you want back.

Javier.

El vie, 15 jul 2022 a las 11:18, Sam_L (<lennon_s_j@xxxxxxxxxxx>)
escribió:

Google 'inner join vs join'

On 7/15/2022 12:58 PM, jerry ven wrote:
Hi,

When I join two files based on ' INNER JOIN' or by simply using
'JOIN'

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.