Any thoughts?
I have found a solution: Put the whole union in a select like this:
Code: Select all
Select * from 
( select * from table1
union 
select * from table2) as resulttable
Thanks
Code: Select all
Select * from 
( select * from table1
union 
select * from table2) as resulttable