I only want to delete from one table, but I have to select based on criteria from a related table. The example I found on here earlier talks about deleting from one table.
How do I turn the following select into a delete statement?
select r.id, r.reminder_date, c.full_name, c.company
from reminders r
left join clients c
on r.client_id = c.id
where (c.full_name is null
or c.full_name = "")
AND (c.company is null
or c.company = "");
Thank you
See http://dev.mysql.com/doc/refman/5.0/en/delete.html