Question

In a database with a foreign key constraint defined using "ON DELETE CASCADE," what happens when a row in the parent (referenced) table is deleted?

A All matching child table rows that reference that parent row are automatically deleted as well
B The delete operation is blocked entirely, and an error is raised to prevent orphaned records
C The foreign key values in matching child rows are automatically set to NULL, while the child rows themselves remain
D The parent row deletion is queued and executed only after all child rows are manually removed by the user
E Only the parent row is deleted; the child rows retain their original values, becoming orphaned silently
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)