$ 0 0 one other way: Select coalesce(a.dob, b.birth_date) as dob From db.table1 a Join db.table2 b (on a.field1 = b.field1) Where coalesce(a.dob, b.birth_date) = '1900-01-01'
one other way:
Select coalesce(a.dob, b.birth_date) as dob
From db.table1 a
Join db.table2 b (on a.field1 = b.field1)
Where coalesce(a.dob, b.birth_date) = '1900-01-01'