SQL : Union for subqueries
I would like to use the union as a subquery and join against it. It would be good if union returned the query.
... = query.from(
This is very useful for comparing user input to existing values in a set-based way to generate insert statements.