pingLeeQuan
Programmer
Sorry if this issue is simple, but I was wondering if someone can help in gathering information form 2 tables in 2 different databases.
This is what I have... but the sql engine tells me that the second table cannot be found in the first database. It does not recognize the second database.
CustMast is the table in the CustLive Database
The default database is BlackBox and the table is tExternalData
---------
select ExternalDataID, CustMast.Unit_ID, CustMast.Tenant_ID from tExternalData
inner join CustLive.CustMast on (CustMast.TENANT_ID = tExternalData.Tenant_ID
and CustMast.UNIT_ID = tExternalData.Unit_ID)
where ExternalDataID = 51
-----------
This is what I have... but the sql engine tells me that the second table cannot be found in the first database. It does not recognize the second database.
CustMast is the table in the CustLive Database
The default database is BlackBox and the table is tExternalData
---------
select ExternalDataID, CustMast.Unit_ID, CustMast.Tenant_ID from tExternalData
inner join CustLive.CustMast on (CustMast.TENANT_ID = tExternalData.Tenant_ID
and CustMast.UNIT_ID = tExternalData.Unit_ID)
where ExternalDataID = 51
-----------