Which option is used to delete data from both parent and child tables?
Answer options
A
CASCADE
B
RESTRICT
C
SET NULL
D
NO ACTION
Correct answer: CASCADE
Explanation
ON DELETE CASCADE automatically deletes child records when the parent is deleted.
Correct answer: CASCADE
ON DELETE CASCADE automatically deletes child records when the parent is deleted.
PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.