Join Two Tables from different databases in one Source Query

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sarathi
Participant
Posts: 27
Joined: Thu Feb 11, 2010 4:14 pm
Location: Minneapolis

Join Two Tables from different databases in one Source Query

Post by sarathi »

I have requirement to Join tables - multiple SQL Server tables with joins to ONE Oracle table with LIKE condition in ODBC Plug-in. I tried giving Oracle DB name in query and getting Invalid object name error.

Query in ODBC SQLServer connection -

select Asset, Tag from asset
join SQLSERVER.Portfolio on SQLSERVER.tid = SQLSERVER.tid
join ORACLE.LOCATION on ORACLE.LOCATION.code LIKE SQLSERVER. code

I'm not insisting on using two separate sources -one for SQLServer and other Oracle.

Thanks in advance

Sarathi
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Since the Oracle and SQL Server database are distinct from each other, you will need to use 2 source stages and perform the join in DataStage.
Post Reply