dbTalk Databases Forums  

SELECTing from multiple databases

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss SELECTing from multiple databases in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alastair Walker
 
Posts: n/a

Default SELECTing from multiple databases - 01-25-2010 , 02:52 AM






Hi - I wonder if any can advise me on the following issue?

I need to run two active databases (e.g. This1.db and This2.db)

I want to do an SQL SELECT operation on (say) Table 1 in This1.db and
on (say) Table 2 in This2.db). I want to produce a DW report with the
data selected from both tables, arising from two seperate databases.

Can this be done?

It seems to be that this operation can only be done by:

a) first get the relevant data from Table 1 - by accessing This1.db.
Save this accessed data in a temporary file.

b) SELECT from the temporary file and Table2 in This2.db.

I have come to this conclusion since there seems no way to select an
SQL connection to two databases in the same statement.

Any comments?

Many thanks,

Alastair Walker

I am using ASA 9.0.2.3044 with PB Professional 10.5 Build 4523.

Reply With Quote
  #2  
Old   
Dmitri
 
Posts: n/a

Default Re: SELECTing from multiple databases - 01-25-2010 , 03:20 AM






Alastair Walker wrote:

Quote:
I want to do an SQL SELECT operation on (say) Table 1 in This1.db and
on (say) Table 2 in This2.db). I want to produce a DW report with the
data selected from both tables, arising from two seperate databases.
It is what remote servers and proxy tables are for. BTW, ASA manual has
an entire chapter (Accessing Remote Data) about the topic.

Dmitri.

Reply With Quote
  #3  
Old   
Alastair Walker
 
Posts: n/a

Default Re: SELECTing from multiple databases - many thanks - 01-25-2010 , 06:50 AM



Many thanks for pointing me in the right direction. It is appreciated!

Regards,

Alastair Walker

On 25 Jan 2010 01:20:16 -0800, Dmitri <NOdimSPAM (AT) mail15 (DOT) com> wrote:

Quote:
Alastair Walker wrote:

I want to do an SQL SELECT operation on (say) Table 1 in This1.db and
on (say) Table 2 in This2.db). I want to produce a DW report with the
data selected from both tables, arising from two seperate databases.

It is what remote servers and proxy tables are for. BTW, ASA manual has
an entire chapter (Accessing Remote Data) about the topic.

Dmitri.

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.