Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to find "No Match" or "Non-existence" 1

Status
Not open for further replies.

cashewsky

Technical User
Aug 22, 2006
5
US
Hello. This is my first time here (I'll be back often, I believe). I have a question concerning a query and two tables.

Table One:450 records
-fields: BenCode, Amount
Table Two:200 records
-fields: BenCode, Description

I am trying to write a query that takes the first field (BenCode) in a table and tests to see if it DOES NOT EXIST in the the second table. I only want to see those BenCodes in the first table that do not have a match in the BenCodes field of the second table.

So far I have tried:
WHERE table1.[Ben Code] <> (table2.[Ben Code]);

but it returns roughly 200 * 450 records, and that makes sense to me, I just don't know the process of determining non-existence.

Any help is appreciated greatly!
~Cashewsky
 

Why not simply use the Find Unmatched Query Wizard?


Randy
 
sounds like a great (obvious) idea! It worked perfectly. Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top