I did the following query
BEGIN TRANSACTION SELECT * from OPENQUERY(LINKEDSV, \'select * from SERVER.rr t1 where exists (select 1 from SERVER.rr t2 where t1.id1=