Is it possible to create a query and ask the following?
I have two tables (each one has one column with data) and I want to obtain as a result all data from the first table MINUS the data from the second table.
Ms-access – Exclude table’s data from another table
ms accessms-access-2010
Related Question
- Ms-access – Splitting 1 record on one table to become two records on another table
- MS Access – Update Table from Another Table with Similar Non-Primary Key Field
- Ms-access – MS Access 2010 adds unwanted wildcard at end of select clause
- Ms-access – How to create a form that allows user to enter a variable number of items
- Ms-access – MS Access 2007: Combining data from tables caused combinations of data
- Ms-access – Policies and Procedures Database
- Ms-access – How to create such a query in MS access so that only customers with more than 3 bookings show up
Best Answer
In standard SQL you could do that very easily with EXCEPT:
However, EXCEPT is unsupported in MS Access. Instead, you could use an anti-join. There are various ways of implementing an anti-join. One is using an EXISTS predicate: