About the “ATM Cash Depletion & Peak Withdrawal Volume” SQL Problem
Business Scenario
Bank vault logistics must route cash replenishment trucks before ATMs run dry over holiday weekends. The operations desk needs a list of ATM terminals where total cash dispensed today exceeds $20,000 across at least 3 transactions.
Expected Output & Criteria
High-volume ATMs requiring priority cash restocking, sorted by cash dispensed.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE atm_withdrawals (
withdrawal_id INT PRIMARY KEY,
terminal_id VARCHAR(20) NOT NULL,
branch_location VARCHAR(80) NOT NULL,
dispensed_usd NUMERIC(10, 2) NOT NULL
);Target SQL Clauses & Operators
Want more Aggregations practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.