View previous topic :: View next topic
|
Author |
Message |
bhaskar80
New User
Joined: 12 Apr 2007 Posts: 7 Location: bangalore
|
|
|
|
Hi all,
can anyone give me info regarding the below query..
What is the difference between Natural Join and Outer Join |
|
Back to top |
|
|
ashwinreddy
Active User
Joined: 16 Sep 2004 Posts: 106 Location: Hyderabad
|
|
|
|
Hi,
A natural join is a join where the result set contains the concatenation of rows in the right hand table whose non-null joining key matches joining keys in the left hand table.
A right (outer) join contains all the results of the natural join PLUS all the 'orphan' rows from the right hand table, i.e. those rows from the right hand table that didn't have a match in the left hand table.
A left (outer) join contains all the results of the natural join PLUS all the 'orphan' rows from the left hand table, i.e. those rows from the left hand table that didn't have a match in the right hand table.
A full (outer) join contains all the results of the natural join PLUS all the orphan rows from the right hand table PLUS all the orphan rows from the left hand table.
Cheers
Ashwin Kumar |
|
Back to top |
|
|
bhaskar80
New User
Joined: 12 Apr 2007 Posts: 7 Location: bangalore
|
|
|
|
Thanks a lot Mr.Ashwin |
|
Back to top |
|
|
|