IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is the difference btween join and union


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
induajayrose
Warnings : 2

New User


Joined: 25 Jul 2005
Posts: 28
Location: Thrissur

PostPosted: Fri Sep 23, 2005 8:06 am
Reply with quote

hai friends,
what is the difference btween join and union.if anyone knows the exact definitions and difference pls give me reply
thanks in advance,
indu
Back to top
View user's profile Send private message
nitin4.a

New User


Joined: 16 Aug 2005
Posts: 26

PostPosted: Fri Sep 23, 2005 11:41 am
Reply with quote

hello

UNOIN: this combines two or more rows and produce the result table structure that have identical structure

JOIN: This combines two or more coloumns and produce the result table structure that can be different from the base tables


regds
nitin
Back to top
View user's profile Send private message
ANIKET

New User


Joined: 28 Apr 2005
Posts: 11
Location: PUNE

PostPosted: Fri Sep 23, 2005 2:56 pm
Reply with quote

hi thr,


in join you can combine number of columns from one table with number of columns from other table. whereas in union we can combine rows from two or more than two table. but for union number of column selected from first table should always equal to that of from another table.

Cheers

:takerest:

Aniket


function can't coffee without in the morning...
Back to top
View user's profile Send private message
karthi_ind

Active User


Joined: 24 Feb 2004
Posts: 131
Location: Chennai

PostPosted: Thu Sep 29, 2005 6:46 pm
Reply with quote

Hi


Join - Combining more than one table with respect to no of columns
Union - Merging more than one table with respect to no of rows.

In Union , the no of cols selected in the first table shld be equal to the no of cols selected in the second table.

In join, we can select any no of cols in the tables.

In Union, both tables column data types should be equal.


Corrections are welcome...

Karthi G.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
Search our Forums:

Back to Top