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
 
Joining 2 tables

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

New User


Joined: 02 Nov 2006
Posts: 43
Location: London

PostPosted: Sat Sep 11, 2010 2:17 am    Post subject: Joining 2 tables
Reply with quote

Hi,

I have Table A and TableB in 2 Databases (PRD11 and PRD88) & in 2 Db2 regions ABC and XYZ respectively.

TableA : DBPPRD11.ABCDB2P.TableA
TableB : DBPPRD88.XYZDB2P.TableB

Now in the above example, the database are different and DB regions are different and my requirement is to cross these 2 tables to filter results. How do I achieve this join?

Thanks,
Arien
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Sep 11, 2010 4:19 am    Post subject:
Reply with quote

Hello,

Suggest you speak with your dba about which alternatives might be available for this.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Sep 13, 2010 12:56 pm    Post subject: Reply to: Joining 2 tables
Reply with quote

Hello Arien,

You can use db2 3 quaifier name to refer these tabes.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Mon Sep 13, 2010 7:44 pm    Post subject: Re: Joining 2 tables
Reply with quote

arien wrote:
Hi,

I have Table A and TableB in 2 Databases (PRD11 and PRD88) & in 2 Db2 regions ABC and XYZ respectively.

TableA : DBPPRD11.ABCDB2P.TableA
TableB : DBPPRD88.XYZDB2P.TableB

Now in the above example, the database are different and DB regions are different and my requirement is to cross these 2 tables to filter results. How do I achieve this join?

Thanks,
Arien

some DB2 Z/OS terminology:
DBPRD11 and DBPRD88 are not databases , but SUBSYSTEMs
ABCDB2P and XYZDB2P are not regions, but SCHEMA's, OWNERs, QUALIFIERs or even CREATORs

You can not join tables from different Subsystems.

In fact : this is the same question as asked friday (only 2 -5 post lower in the overview) : http://ibmmainframes.com/viewtopic.php?t=51200
Back to top
View user's profile Send private message
arien

New User


Joined: 02 Nov 2006
Posts: 43
Location: London

PostPosted: Wed Sep 15, 2010 8:22 pm    Post subject:
Reply with quote

Thank you all. This definitely clarifies my concepts.
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 Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts To know activities on db2 tables ashek15 DB2 4 Fri Mar 03, 2017 11:23 pm
No new posts ERM-Diagram of SysIBM-Catalog-Tables Auryn DB2 2 Fri Feb 17, 2017 6:22 pm

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