What is a soft delete and what are its trade-offs?
Model answer
Instead of deleting a row, mark it with a deleted flag or timestamp. It allows recovery and keeps history, but every query must filter the deleted rows, unique constraints need care, and data may need to be removed for privacy rules.
Learn this topic
Keys and Table Design: Why Data Is Split Into Tables in the course SQL for Beginners: Learn Databases Step by Step.
Sign in to add your own answer.