Can you show us the table designs for both g_license and D_license -- all the fields?
And can you tell us exactly what you have to edit?
You didn't mention the three extra fields I need - Phone_Number, Called, and Code.
until after people had offered solutions.Help us help you by stating the problem and context.We can only respond to what you tell us/show us.
As others have said, I think this should identify the records you need to edit. (query DLicenseNOTGLicense)
Code:
SELECT DISTINCT D_License.Last_name
, D_License.First_Name
, D_License.Date_Of_Birth
, G_License.PhoneNUmber
, G_License.Called
, G_License.Code
, D_License.PhoneNUmber
, D_License.Called
, D_License.Code
FROM D_License LEFT JOIN G_License ON
(D_License.Date_Of_Birth = G_License.Date_Of_Birth) AND
(D_License.Last_name = G_License.Last_name) AND
(D_License.First_Name = G_License.First_Name)
WHERE (((G_License.First_Name) Is Null))
ORDER BY D_License.Last_name;