How to run a join on the result of a union

I have a union await union(...) and I would like to join it with another table. What should I do? Should I put it inside the union query itself (as monsterous as it would become)?
2 Replies
Angelelz
Angelelz5mo ago
You can put the union inside a CTE or a subquery
veeque
veequeOP5mo ago
yess, that's what i was looking for. thanks!

Did you find this page helpful?