About the “Real-Time Supply-Demand Imbalance Surge Multiplier” SQL Problem
Business Scenario
Ride hailing pricing algorithms compute real-time surge multipliers per geographic zone based on the ratio of active rider demand requests to available nearby drivers.
Expected Output & Criteria
Geographic dispatch zones with calculated surge pricing multipliers.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE zone_supply_demand (
zone_id INT PRIMARY KEY,
zone_name VARCHAR(50) NOT NULL,
rider_requests INT NOT NULL,
available_drivers INT NOT NULL
);Target SQL Clauses & Operators
CASEWHENORDER BY
Want more Business Analytics practice?
Explore the full syllabus of 14 exercises, syntax guides, and interview pitfalls.