Level 5 - SeniorDebugging Questions
Debug: Invalid CHECK Constraint Logic
Interviewer prompt: Review and fix this DDL bug. CREATE TABLE payouts ( payout_id BIGINT PRIMARY KEY, amount DECIMAL(12,2) CHECK (amount < 0), status VARCHAR(20) CHECK (status IN ('PENDING','PAID')) );