I have a combined operation between two tables
SELECT ID_1,
name_1,
surname_1,
FROM T_ONE
UNION
SELECT ID_2,
name_2,
surname_2
FROM TABLE_2
I want to join the result of this operation UNIONwith another table or even with all TABLE_1.
How can I process this new table result from UNION.
for example, after the previous one UNION:
RIGHT JOIN TABLE_3
ON TABLE_3.ID_3 = XXXXXXXXXXXXXXXXXXXX.ID_2
I really do not know what I need to put in place of XXXXXXXXXXXXXXXX to create a new table generated UNION.
Lopoc source
share