Good people,
I would like to know what approach they would take to make a union only if the above query, from the union, returns values. Consider that the tables are compatible EX:
SELECT * FROM Tabela1
UNION
SELECT * FROM Tabela2
/*Esta query so deve ser executada apenas se a query acima, select * from Tabela1, tiver devolvido algum valor*/
Regards, Leandro