SELECT TableA.name, TableA.description AS "description A",TableB.description AS "description B"
FROM TableA
LEFT JOIN TableB ON TableA.name = TableB.name
UNION
SELECT TableB.name, TableA.description AS "description A",TableB.description AS "description B"
FROM TableB
LEFT JOIN TableA ON TableA.name = TableB.name
ORDER BY name ASC
|