Simple query - compare 2 fields

S

sysr

I have Table A with a field called Badge_Number

I have Table B with a field called Badge_Number

Table A with field Badge_Number has entries 101, 102, 103, 104, 105

Table B with field Badge_Number has entries 103, 104

I need to do a query that gives the results of entries in A that are not in B
(101, 102, 105)

This is the only thing that I have to do in Access. I have tried to learn as
much as possible, but I am running out of time. Any help would be greatly
appreciated.

Thanks.
 
A

Allen Browne

When you click the Queries tab of the Database window, and click New, Access
offers you several wizards. One of them is the Unmatched Query Wizard.
 
T

Tom Ellison

Dear sysr:

SELECT [Table A].*
FROM [Table A]
LEFT JOIN [Table B]
WHERE [Table B].Badge_Number IS NULL

Tom Ellison
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Retrieve all entries in table1 eventho they're not matched in tabl 5
auto index 1
index 1
Another Join Question 3
Select/Sort Hierarichal Data in worksheet 3
Sort data 2
Copy in order 3
Join Problem 7

Top