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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table1 - table2 = query_result?

Status
Not open for further replies.

w3bm0nki

MIS
Apr 2, 2003
21
US
I am working in Access XP and need to do the following.

table1 - table2 = query_result

Table1 and Table2 each have 4 fields that match. I want to show everything from table1 that does NOT exist in table2? Is this possible in access?
 
Select A.*
From Table1 As A LEFT JOIN Table2 As B
ON A.f1 = B.f1
AND A.f2 = B.f2
AND A.f3 = B.f3
AND A.f4 = B.f4
WHERE B.f1 IS NULL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top