【发布时间】:2021-08-18 23:58:26
【问题描述】:
我们如何让 BigQuery 返回左连接中存在于表 A 中但在表 B 中为 NULL 的行?
当我运行它时,下面不会返回任何行,即使表 A 中有不在表 B 中的值
-- find missing users. return rows which exist in A but not in B
select a.user_id
from table_a a
left outer join table_b b on a.user_id = b.user_id
where b.user_id is null
【问题讨论】:
-
您的代码是正确的,因此您的问题无法重现。
标签: sql google-bigquery