Hi All,

I would like to do a union between 3 or 4 tables using the all powerful 
sqlalchemy. The tables have about 3 columns that are the same but each 
table has 2 different columns.

Is it possible to do a query as below in sqlalchemy?

Select Col1, Col2, Col3, Col4, Col5 from Table1
Union
Select Col1, Col2, Col3, Null as Col4, Null as Col5 from Table2


-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/a74e30bb-b7b3-4120-accf-68dac445ac51%40googlegroups.com.

Reply via email to