SyntaxFix
Write A Post
Hire A Developer
Questions
I would opt for NOT EXISTS in this case.
NOT EXISTS
SELECT D1.ShortCode FROM Domain1 D1 WHERE NOT EXISTS (SELECT 'X' FROM Domain2 D2 WHERE D2.ShortCode = D1.ShortCode )