I want to write the following (pseudo) SQL statement in MS Access:
Select C
from MyTable
where (A, B) IN (select distinct A,B from MyTable);
I tried that but got the complaint “You have written a subquery that can return more than one field without using the EXISTS reserved word in the main query’s FROM clause.”
I appreciate any feedback.
You can use an inner join as a filter:
(I’m assuming you have two tables because the query doesn’t make much sense for one table. Obviously, all combinations of A and B that are in Table1 will “also” be in Table1.)