Question : Can I use union with sql subqueries?

Can I use union with sql subqueries?

SELECT * FROM TABLE WHERE 1 = (SELECT 1 FROM msysaccessobjects UNION SELECT 1 FROM msysaccessobjects)

I tried to use union with sql subqueries. However I get an error when I try to compile this sql query. Does UNION work with sql subqueries?

Answer : Can I use union with sql subqueries?

I take back my previous comment. It seems that you cannot use UNION directly.

Try if this works
1:
SELECT * FROM TABLENAME WHERE 1 IN (SELECT A FROM (SELECT 1 AS A FROM msysaccessobjects UNION ALL SELECT 1 FROM msysaccessobjects) T)
Random Solutions  
 
programming4us programming4us