Hi all,
I am trying to compare a like field from two seperate databases on the same server. My goal is to extract only transactions from db1 that are not already in db2.
I thought it would be something easy like...
Select distinct FIELD1 from db1.dbo.TABLE, db2.dbo.TABLE WHERE????
Without the WHERE I get the error: Ambiguous column name 'accoCode'.
Any ideas on how to do this?
Thanks in advance for your help.
Regards,
Mike
I am trying to compare a like field from two seperate databases on the same server. My goal is to extract only transactions from db1 that are not already in db2.
I thought it would be something easy like...
Select distinct FIELD1 from db1.dbo.TABLE, db2.dbo.TABLE WHERE????
Without the WHERE I get the error: Ambiguous column name 'accoCode'.
Any ideas on how to do this?
Thanks in advance for your help.
Regards,
Mike