SpinTheMic
Pro

Interview practice question

Deleting a customer with orders

Backend Engineering · Relational Databases · Beginner

An admin tries to delete a customer, and the database refuses because of their orders. What are your options?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Foreign key prevents orphan orders.
  • Don't cascade-delete financial records.
  • Soft delete or anonymise customer.
  • Restrict delete with clear error.
  • Legal retention rules.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics