We have 2 tables LaborHed and LaborDtl. LaborHed contains EmployeeNum, ClockInDate ans some other info. LaborDtl contains EmployeeNum, ClockInDate, JobNum and some other info.
Example of LaborHed:
Example of LaborDtl:
To show the records the qry I wrote is :
SELECT PUB_LaborHed.EmployeeNum, PUB_LaborHed.ClockInDate, PUB_LaborDtl.JobNum
FROM PUB_LaborHed LEFT JOIN PUB_LaborDtl ON (PUB_LaborHed.ClockInDate = PUB_LaborDtl.ClockInDate) AND (PUB_LaborHed.EmployeeNum = PUB_LaborDtl.EmployeeNum);
Now you can see there are some records in LaborHed that Do not have any detail. I need to write a qry to delete all of these records from LaborHed.
Example of LaborHed:
Example of LaborDtl:
To show the records the qry I wrote is :
SELECT PUB_LaborHed.EmployeeNum, PUB_LaborHed.ClockInDate, PUB_LaborDtl.JobNum
FROM PUB_LaborHed LEFT JOIN PUB_LaborDtl ON (PUB_LaborHed.ClockInDate = PUB_LaborDtl.ClockInDate) AND (PUB_LaborHed.EmployeeNum = PUB_LaborDtl.EmployeeNum);
Now you can see there are some records in LaborHed that Do not have any detail. I need to write a qry to delete all of these records from LaborHed.