If select A does not have a column, simply use a null value
table A (colA, ColB, ColC)
table B (colA, ColD, ColE)
select colA, ColB, ColC, null, null from table A
union
select colA, null, null, colD, colE from table B
just need to be sure that each column you are matching are of the same data type