troubleshooting Question

Extract unmatched records from Access

Avatar of gfranco
gfrancoFlag for United States of America asked on
SQL
11 Comments2 Solutions269 ViewsLast Modified:
Hi,

I have two tables with this structure

tblSOM
=======
ID         Contract         Cliente          Region
1           765                 A                 R1
1           1567               D                 R1
2           766                 B                 R2
3           777                 C                 R3
4           888                 D                 R4
5          9999                E                  R5

tblContracts
========

ID         Contract         Cliente          Region
1           765                 A                 R1
1           1567               D                 R1
1           99990             Z                 R2
2           11                   A                 R3
2           766                 B                 R2
3           777                 C                 R3
3          23234              18                R2
4           888                  D                 R4
5          999901             E                  R5

So, I would like to get the all contracts that not exits on the table tblContracts
The match criteria is the ID
For example on this 2 tables my final result would be the list of the contract that not in on table tblSOM

qryFinal
ID         Contract         Cliente          Region
1           99990               Z                 R2
2           11                     A                 R3
3          23234               18                R2
4           888                   D                 R4
5          999901              E                  R5

ASKER CERTIFIED SOLUTION
ralmada

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros