Computer Science · Database Constraints
When a customer account is deleted, all their associated orders must be removed automatically to maintain referential integrity. Which database configuration directly fulfills this requirement?
- 1A UNIQUE constraint on the customer_id column
- 2A FOREIGN KEY constraint configured with ON DELETE CASCADE✓
- 3A CHECK constraint applied on the orders table
- 4Creating a relational VIEW over both the customer and orders tables
Correct answer
A FOREIGN KEY constraint configured with ON DELETE CASCADE
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Database Constraints?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Database Constraints