Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要那些没有 b.email mathc 的 a.email 案例。所以在这种情况下 b.email 将为空,但我不确定如何正确编写配置单元查询
select a.email, b.email from dir1 a left outer join on dir1 b where b.email一片空白
select a.email, b.email from dir1 a left outer join on dir1 b where b.email
我期望的输出是
abc@aol.com abc@aol.com bcd@yahoo.com NULL
我只想保留右侧有 NULL 的情况
使用 where b.email IS NULL
select a.email, b.email from dir1 a left outer join on dir1 b where b.email is null