I am using a union query in for combining results from 2 linked tables as under:
SELECT * FROM TABLE1
UNION
SELECT * FROM TABLE2;
Now, I want that even if one of the table does not exist, the query should work i.e. it should return results from only one table.
Is there any function like 'IF EXIST' ?
Please help.
Regards