About the “Banking Dispute Escalation Routing” SQL Problem
Business Scenario
A digital payments gateway handles transaction disputes. Compliance mandates assigning a routing priority: disputes over $1,000 or marked with 'unauthorized_charge' are 'CRITICAL'; disputes between $200 and $1,000 are 'HIGH'; all other disputes are 'STANDARD'.
Expected Output & Criteria
Dispute tickets classified by escalation priority and sorted by disputed amount.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE dispute_tickets (
dispute_id VARCHAR(16) PRIMARY KEY,
account_id INT NOT NULL,
disputed_amount NUMERIC(10, 2) NOT NULL,
reason_code VARCHAR(40) NOT NULL,
filed_date DATE NOT NULL
);Target SQL Clauses & Operators
Want more Fundamentals practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.