I’m working on a WinForms application with an Access database.
Please correct me.
Select *
from EMP
where Empid in
(Select id
from Test1
where pin=4
UNION
Select id
from Test2
where pin=4)
When I try to execute this on the Access database, it gave me this error:
Operations are not allowed in subquery
I tried as below and its worked.