Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is the difference between Natural Join and Outer Join

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
bhaskar80

New User


Joined: 12 Apr 2007
Posts: 7
Location: bangalore

PostPosted: Tue Apr 17, 2007 2:26 pm    Post subject: What is the difference between Natural Join and Outer Join
Reply with quote

Hi all,
can anyone give me info regarding the below query..
What is the difference between Natural Join and Outer Join
Back to top
View user's profile Send private message

ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Tue Apr 17, 2007 2:40 pm    Post subject:
Reply with quote

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
View user's profile Send private message
bhaskar80

New User


Joined: 12 Apr 2007
Posts: 7
Location: bangalore

PostPosted: Thu Apr 19, 2007 1:57 pm    Post subject:
Reply with quote

Thanks a lot Mr.Ashwin
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 22 Sun Aug 27, 2017 10:35 pm
No new posts Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us