I am aware we can use ALIAS in FROM clause at SELECT but its giving error for me.
sample code:-
select a.first_name from( select first_name from EMPLOYEES where first_name='Ellen') as a;
my code:-
SELECT a.id_employee FROM(SELECT id_employee FROM table1 union SELECT id_employee FROM table2) as a;
I get the error 00933. 00000 - "SQL command not properly ended"