sql server - How to write "not in ()" sql query using join - Stack Overflow

PHOTO EMBED

Tue Jul 18 2023 16:41:34 GMT+0000 (Coordinated Universal Time)

Saved by @destinyChuck #sql

SELECT  d1.short_code
FROM    domain1 d1
LEFT JOIN
        domain2 d2
ON      d2.short_code = d1.short_code
WHERE   d2.short_code IS NULL
content_copyCOPY

https://stackoverflow.com/questions/5676559/how-to-write-not-in-sql-query-using-join