How to return missing rows from LEFT JOIN in BigQuery
-1
votes
1
answer
4694
views
How can we get BigQuery to return the rows in a LEFT JOIN which exist in TABLE A but are NULL in TABLE B?
-- find missing users. return rows which exist in A but not in B
select a.user_id
from database_a a
left outer join database_b b on a.user_id = b.user_id
where b.user_id is null
Asked by crazy8
(131 rep)
Aug 18, 2021, 11:53 PM
Last activity: Jan 7, 2024, 12:04 AM
Last activity: Jan 7, 2024, 12:04 AM