If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Query from 2 DBs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-01-06, 12:47
jinsezh jinsezh is offline
Registered User
 
Join Date: Aug 2006
Posts: 33
Question Query from 2 DBs

Hi there,

I have searched but haven't got the exact answer of how to query from 2 DBs.

Select * from db1.schema1.table1, db2.schema2.table2 where...

doesn't seem to work.

I am using CLP.

I saw someone said Federated Databases, could anyone be kind enough to give me a brief idea what it is and how it works?


Thanks a lot,
Jinsezh
Reply With Quote
  #2 (permalink)  
Old 09-01-06, 13:05
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 09-01-06, 13:07
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Federation is basically having 2 (or more) DB look like they are one. Applications only connect to one DB and can access the others through normal SQL. The tables in the other DBs are given "nicknames" and that is how the data is accessed. Look in the online reference at:
http://publib.boulder.ibm.com/infoce.../v8//index.jsp
and look in Administring and you will find the Federation documentation.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On