SQL Practice Logo

SQLPractice Online

Level 5 - SeniorQuery-Based Questions

Implement Soft Delete with Constraint Safety

Interviewer prompt: Introduce soft delete for projects while preventing duplicate active names within the same organization. Write SQL changes.

Schema Context

projects(project_id, org_id, name)