Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 10:40 AM
Andy S.
Guest
 
Posts: n/a
Default SELECTing from multiple databases?

Hi,

I'm running DB2 V 7.1 and I wish to write a SELECT query that queries
tables in multiple tables in different databases on the same instance.
Is this possible and if so, what should the FROM clause look like?

Thanks for your help...

  #2  
Old November 12th, 2005, 10:40 AM
Serge Rielau
Guest
 
Posts: n/a
Default Re: SELECTing from multiple databases?

Andy S. wrote:[color=blue]
> Hi,
>
> I'm running DB2 V 7.1 and I wish to write a SELECT query that queries
> tables in multiple tables in different databases on the same instance.
> Is this possible and if so, what should the FROM clause look like?
>
> Thanks for your help...
>[/color]
Yes thsi is possible. First you have to do:
UPDATE DBM CFG USING FEDERATED YES
Then you need to familiarize yourself with the concept of "NICKNAME"s
You may want to start here for a read:
http://www-128.ibm.com/developerwork...06purnell.html
(there is tons of information on deleveloperWorks, but DB2 V7.1 is quite
dusty ...)

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.