How to write “not in ()” sql query using join

前端 未结 3 1605
小鲜肉
小鲜肉 2020-12-13 05:33

Could some one please provide how to write following sql query using joins. I do not want use not in as well as if possible I would like to replace

3条回答
  •  -上瘾入骨i
    2020-12-13 06:31

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

提交回复
热议问题