How can I find unmatched records across 2 fields

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 2 tables that have the following fields 1) Docket Number 2) item. I
need to find instances in either table when the Docket Number together with
the Item do not match. I have tried joining the 2 fields with & " " & and
doing an unmatched query but this doesn't work
 
You can join on multiple fields ...

SELECT Table2.*
FROM Table2 LEFT JOIN Table1 ON (Table2.item = Table1.item) AND
(Table2.docketnumber = Table1.docketnumber)
WHERE (((Table1.ID) Is Null));

.... where 'ID' is the primary key.
 

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

Back
Top