Is it possible to use an open query inside another open query ?
- SELECT * FROM OPENQUARY([Test],
- 'SELECT * FROM HR.Employee
- WHERE DeptID NOT IN
- (SELECT * FROM OPENQUERY ([Test],''SELECT DISTINCT DeptID
- FROM HR.Departments''))
- ')
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend3days leftRegister
Amira BedhiafiRank #601 · 4K reputationPosted Apr 16, 2021, 11:26 AM EDT