2

b.email mathc がない a.email のケースが必要です。したがって、この場合 b.email は null になりますが、このためのハイブクエリを正しく記述する方法がわかりません

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 がある場合のみを保持したい

4

1 に答える 1

1

b.email が NULL の場合に使用

select a.email, b.email from dir1 a left outer join on dir1 b where b.email is null
于 2012-12-04T21:26:07.010 に答える