Delete from one table with join

I am not sure about your requirement.
What I understood from your question is you want to delete all the emails of jobs which are closed.
try this one;

DELETE e FROM emailNotification e 
LEFT JOIN jobs j ON j.jobId = e.jobId 
WHERE j.active = 1 AND CURDATE() < j.closeDate

Leave a Comment