Google Answers Logo
View Question
 
Q: Database inner joins across 2 databases ( No Answer,   0 Comments )
Question  
Subject: Database inner joins across 2 databases
Category: Miscellaneous
Asked by: davidk1946-ga
List Price: $10.00
Posted: 06 Feb 2005 17:05 PST
Expires: 08 Mar 2005 17:05 PST
Question ID: 470061
I have 2 database:

Database 1 contains a table "Orders" that includes the string field "Supplier_Code"
Database 2 contains a table "Suppliers" that includes the string field
"Code", and boolean field "IsValid"

I want an SQL ststement to retreive orders on valid suppliers only.

If both tables were in the same database, my statement would be something like:


"Select * from Orders where ....... inner join Suppliers on
Orders.Supplier_Code = Suppliers.Code where Suppliers.IsValid<>0 order
by Supplier_Code"


However, I need a statement that allows for the tables being in
different databases.

The databases will be either MS Access, MS Sql Server, MySQL or MSDE,
and will both be the same type.
I do have variables storing the connection strings to each database
("cStr1" and "cStr2") and also ADODB connection variables ("con1" and
"con2").
The application is written in VB6 using ADO.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy