I’m trying to delete a row of data across two tables. I have the following code which isn’t working:
DELETE
FROM PROCESS_OWNER.ARTIFACTS
JOIN PROCESS_OWNER.ARTIFACT_METADATA
ON ARTIFACTS.ARTIFACT_ID = ARTIFACT_METADATA.ARTIFACT_ID
WHERE ARTIFACT_LABEL = 'getTest'
I get the error message:
“SQL command not properly ended”
Would really appreciate some help as I am struggling to get to grips with Oracle.
You can’t do it with a join. DELETE FROM has to target a single table. You could do this: