1-- MySql FULL OUTER JOIN
2
3SELECT * FROM t1
4LEFT JOIN t2 ON t1.id = t2.id
5UNION ALL
6SELECT * FROM t1
7RIGHT JOIN t2 ON t1.id = t2.id
8WHERE t1.id IS NULL
9
1All part of the tables both matching portions
2and unmatching portions from both tables.