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 > All rows from 2 tables

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-04-06, 02:21
sinwar sinwar is offline
Registered User
 
Join Date: Oct 2005
Location: pune(india)
Posts: 24
All rows from 2 tables

i need to select all rows from 2 tables that resides in 2 different databases and 2 different servers and have similar structure...Is it possible via query or i need to do it via the usual way...connecting them(server and databases) seperately and fetching one after the other....please advise..
Reply With Quote
  #2 (permalink)  
Old 04-04-06, 02:36
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can configure and use DB2 Federated support and join the two tables in a single SQL statement.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 04-04-06, 03:17
sinwar sinwar is offline
Registered User
 
Join Date: Oct 2005
Location: pune(india)
Posts: 24
Quote:
Originally Posted by Marcus_A
You can configure and use DB2 Federated support and join the two tables in a single SQL statement.

Marc,

Thanks for your reply.

I am totally new to federated datbases...
Can you guide me in this configuration and any example that would help me understand the funda...

How do i use that in my query once i have configured the databses???

Can you guide me through this ...

Thanks,
Sinwar
Reply With Quote
  #4 (permalink)  
Old 04-04-06, 04:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I don't know the syntax off-hand, but you can download the Federated Systems manual to show you how to configure it. Once set up, you can reference tables in two different databases (on any machine) in a single SQL statement.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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