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

Join query using different tables and multiple columns


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
aryanpa1

New User


Joined: 26 May 2007
Posts: 45
Location: Chennai

PostPosted: Thu Sep 29, 2011 2:11 am
Reply with quote

Hi Team,

Below are the fileds on Table A and Table B.

Column1 --- DECIMAL(7,0)
Column2 ---CHAR(2)
Column3 --- DECIMAL(5,0)
Column4 --- CHAR(3)
Column5 --- DECIMAL(3,0)

Column1 to Column5 together form a key on both Table A and Table B.

My requirement is to unload only rows from TableA which are not matching with Table B for the columns Column1 to Column5.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 29, 2011 2:55 am
Reply with quote

search the forum for compare tables.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 29, 2011 10:40 am
Reply with quote

or probably easier,
look thru all of posts by GuyC.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts RC query -Time column CA Products 3
No new posts Remote Unload of CLOB Columns DB2 6
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top