All challenges
Code AnalysisIntermediate 60s

Non-Atomic Balance Check SQL

SQL: SELECT balance FROM accounts WHERE id = 42; -- app checks balance >= 100 in code UPDATE accounts SET balance = balance - 100 WHERE id = 42; Under concurrent requests what can happen?

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle