A referential integrity constraint may be violated when tuples in the referenced tuple are updated / deleted. By default REJECT is used for operations that violate constraints.
However, we can specify what should happen on different events such as:
ON DELETEON UPDATE
And trigger actions such as:
RESTRICTCASCADESET NULLSET DEFAULT
Example:
CREATE TABLE EMPLOYEE (
...,
FOREIGN KEY(DNO) REFERENCES DEPARTMENT(DNUMBER)
ON DELETE SET DEFAULT ON UPDATE CASCADE,
FOREIGN KEY(SUPERSSN) REFERENCES EMPLOYEE(SSN)
ON DELETE SET NULL ON UPDATE CASCADE
);