About the “International Card Authorization Decline Concentrations” SQL Problem
Business Scenario
Payment authorization routers detect geo-specific interchange outages by tracking card decline volumes and total blocked dollar value per issuing country.
Expected Output & Criteria
Card decline count and aggregate blocked dollar amount by country.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMCREATE TABLE card_authorizations (
auth_id VARCHAR(20) PRIMARY KEY,
issuing_country VARCHAR(4) NOT NULL,
amount_usd NUMERIC(10, 2) NOT NULL,
auth_status VARCHAR(20) NOT NULL
);Target SQL Clauses & Operators
Want more Aggregations practice?
Explore the full syllabus of 16 exercises and syntax guides.