backendgym backendgym · reps Sign in with GitHubSign in

09Soft-delete one card

sql-designing-and-writing / reps/09/README.md

The support request names card 4. An assistant wrote the soft-delete in answer.sql. Read it first, then run it and compare with the expected result below. Narrow the condition to the named card, keeping the row for the audit trail and the transaction that rolls it back.

Expected once fixed: 1 card marked deleted and 4 cards with deleted = false. The shipped file marks all 5 and leaves 0.

After the rep
  1. 1 How many rows did the soft delete add to card_status_events, and what does that leave an auditor unable to tell?