Hi,
in a previous post I was trying to create an update query from an unmatched query but was getting an ambiguous join error. now i'm trying to create the join before my update to show my unique identifier (contactID) in my query results.
I need help connecting these two querys:
1. creates the join
2. Performs the unmatched query
Its probably simple, but i'm not very good with sql code.
thanks in advance!
in a previous post I was trying to create an update query from an unmatched query but was getting an ambiguous join error. now i'm trying to create the join before my update to show my unique identifier (contactID) in my query results.
I need help connecting these two querys:
1. creates the join
Code:
SELECT UpdateCallCenterSX2QRY.ContactID
FROM [Patient Status Table] INNER JOIN UpdateCallCenterSX2QRY ON [Patient Status Table].ContactID = UpdateCallCenterSX2QRY.ContactID;
2. Performs the unmatched query
Code:
SELECT UpdateCallCenterSX1QRY.PatientAccountNumber, UpdateCallCenterSX1QRY.PatientLastName, UpdateCallCenterSX1QRY.PatientFirstName, UpdateCallCenterSX1QRY.PatientCity, UpdateCallCenterSX1QRY.PatientState, UpdateCallCenterSX1QRY.PatientZipCode, UpdateCallCenterSX1QRY.[Appointment Date]
FROM UpdateCallCenterSX1QRY LEFT JOIN UpdateCallCenterSX2QRY ON UpdateCallCenterSX1QRY.PatientZipCode = UpdateCallCenterSX2QRY.PostalCode
GROUP BY UpdateCallCenterSX1QRY.PatientAccountNumber, UpdateCallCenterSX1QRY.PatientLastName, UpdateCallCenterSX1QRY.PatientFirstName, UpdateCallCenterSX1QRY.PatientCity, UpdateCallCenterSX1QRY.PatientState, UpdateCallCenterSX1QRY.PatientZipCode, UpdateCallCenterSX1QRY.[Appointment Date], UpdateCallCenterSX2QRY.PostalCode
HAVING (((UpdateCallCenterSX2QRY.PostalCode) Is Null));
Its probably simple, but i'm not very good with sql code.
thanks in advance!