I'm new to SqlAlchemy and I'm Trying to create a Union of Two tables,
I have TableA with 5 columns Col1, Col2, Col3, Col4 and Col5.
and TableB with 3 columns Col1, Col2 and Col3.
what i need is something like
Select Col1, Col2, Col3, Col4, Col5 from TableA
Union
Select Col1, Col2, Col3, Null as Col4, Null as Col5 from TableB
How can i implement this using SQLAlchemy?
Thanks in advance