i have a query that tells me which records in one table have no counterpart in another table:
SELECT xoc.onet_code, xoc.cip_code, c.onet_code,
c.title
FROM myplan_xwalk_onet_cip xoc
LEFT JOIN myplan_careers c
ON c.onet_code=xoc.onet_code
WHERE c.onet_code IS NULL
i would like to delete the records in xoc where there's no match in c. is there a query that will to this without also deleting records in c?