Say we have the following tables t1 and t2:
t1: id | column_1 ------------- 1 | 1 2 | 2 t2: id | column_2 ------------- 2 | 2 3 | 3
select a.id, t1.column_1, t2.column_2 from ( select id from t1 union select id from t2 ) a left outer join t1 on a.id = t1.id left outer join t2 on a.id = t2.id