Intermediate SQL
Q56 / 100

What does the "ON DELETE CASCADE" option on a foreign key do?

Correct! Well done.

Incorrect.

The correct answer is B) Automatically deletes rows in the child table when the referenced row in the parent table is deleted

B

Correct Answer

Automatically deletes rows in the child table when the referenced row in the parent table is deleted

Explanation

ON DELETE CASCADE propagates deletions: removing a parent row automatically removes any child rows that reference it via the foreign key.

Progress
56/100