Hello pgsql-sql,
I have the rule for table
CREATE RULE del_jobs_del_activity AS ON DELETE TO jobs DO DELETE FROM activities WHERE job_id = OLD.job_id;
When i call:
DELETE FROM jobs WHERE job_id IN (SELECT DISTINCT job_id FROM
activities WHERE load_no = 123)
This query does not delete the record from jobs but delete the
record by rule.
What must I change for work this query correctly?
Best regards,
Andriy mailto:andriy(dot)pyrozhenko(at)vanjaonline(dot)com