Hi,
I'm trying to retrieve data where there is a match from two different db which are on different servers. Basically server no.1 where I have to run the code from, only has the object's code, but server no.2 has it name and code. Basically I want to create a join which returns the code and name, only where the code that resides in server no.1 resides on server no.2 as well. I have tried different variations of the below code, but to no joy, but I'm not even quite sure if its possible so I may be trying in vain. anyway the join I was trying to do and amending is as follows:
SELECT s1.object_code, s2.object_desc
from server1.dbname.table s1, server2.dbname.table s2
where s1.object_code = s2.object_code
any help would b appreciated.
I'm trying to retrieve data where there is a match from two different db which are on different servers. Basically server no.1 where I have to run the code from, only has the object's code, but server no.2 has it name and code. Basically I want to create a join which returns the code and name, only where the code that resides in server no.1 resides on server no.2 as well. I have tried different variations of the below code, but to no joy, but I'm not even quite sure if its possible so I may be trying in vain. anyway the join I was trying to do and amending is as follows:
SELECT s1.object_code, s2.object_desc
from server1.dbname.table s1, server2.dbname.table s2
where s1.object_code = s2.object_code
any help would b appreciated.