Hello,
I can't figure out how to delete records from both tables that are joined. The results I need to delete are based on the WHERE clause that returns the data. My delete statement is only deleting from the ae_job table and I need the records to also delete from the ae_jobel table.
SELECT distinct appid, ae_jobel.docid, ae_job.jid, ae_job.jstat
from ae_job join ae_jobel
ON (ae_job.jid = ae_jobel.jid)
where appid = '180'
DELETE ap
from ae_job as ap
INNER JOIN ae_jobel as el
ON ap.jid = el.jid
WHERE LOWER(el.appid) LIKE '%180%'