Watch this video on YouTube
You added CONSTRAINT chk_positive CHECK (quantity > 0) to inventory_delta . A batch job now fails on MERGE with ERROR: CHECK constraint violated . How do you skip only the bad rows while still merging the rest?