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

Matching fields in databases 1

Status
Not open for further replies.

NFLDUser

IS-IT--Management
Apr 17, 2006
47
CA
I have a table called PatientList with a field called prim_key representing each patient. I also have a table called Recalls with a field called pat_num. Is there a query that will tell me what patients in PatientList do NOT have a recall associated with them?

 
Replace PatientName with whatever your patient name field is called.

SELECT PatientList.PatientName, Recalls.pat_num
FROM PatientList LEFT JOIN Recalls ON PatientList.prim_key = Recalls.pat_num
WHERE (((Recalls.pat_num) Is Null));

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top