I have a bigquery select statement where in some cases, the where clauses show null = null
In the case of this statement:
select * from `db.ds.table1` t1
join `db.ds.table2` t2
on t1.first_name = t2.first_name
and t1.last_name = t2.last_name
as you can see, this would appear to be looking for people, however, in some cases, I have businesses in the tables. In those cases, first_name
is used, and last_name
is null.
this means I have a null = null
scenerio, and fails join.
How do I tell bigquery to allow null = null
, without having to put coalesce statements all over the place?
Thanks