SQL Practice Logo

SQLPractice Online

Level 5 - SeniorScenario-Based Questions

Scenario: Guard Against Negative Inventory

Interviewer prompt: Inventory updates from multiple services caused negative stock values. What schema and query-level protections should be added?

Schema Context

inventory(sku_id, stock_qty)