Another question shows how to do a join in SQLAlchemy.
Can I perform a join in SQLAlchemy without using a subquery?
For example, in a related question, SQLAlchemy creates SQL forms:
SELECT * FROM (SELECT column_a FROM table_a UNION SELECT column_b FROM table_b)
But I would like SQLAlchemy to create SQL like:
SELECT column_a FROM table_a UNION SELECT column_b FROM table_b
The latter SQL is shorter, does not use a subquery and does the same. Can SQLAlchemy create a join similar to the last query?
source share