I'm trying to build a query to pull data from a linked Oracle server using data from a local table as part of the criteria. Is this possible? The idea I'm working on looks like this:
Obviously, as is the query tries to find local-table on the Oracle server instead of locally.
Code:
select * from
openquery([linkedserver], 'select * from table where RecID IN (select RecID from local-table)')
Obviously, as is the query tries to find local-table on the Oracle server instead of locally.