I have two tables (Table A and Table B).
These have different number of columns - Say Table A has more columns.
How can I union these two table and get null
for any extra column if there is no mapping then map it to null like the following SQL query
Select Col1, Col2, Col3, Col4, Col5 from Table1 Union Select Col1, Col2, Col3, Null as Col4, Null as Col5 from Table2````