About the “Driver Acceptance & Ride Cancellation Benchmarks” SQL Problem
Business Scenario
Ride reliability is essential for platform retention. The city operations manager needs to analyze completed versus canceled rides across different vehicle tiers to spot service breakdown.
Expected Output & Criteria
Summary of ride requests, completed rides, and completion percentage per vehicle tier.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE ride_requests (
ride_id INT PRIMARY KEY,
vehicle_tier VARCHAR(20) NOT NULL,
fare_usd NUMERIC(8, 2) NOT NULL,
status VARCHAR(20) NOT NULL
);Target SQL Clauses & Operators
GROUP BYCOUNTROUNDCASE
Want more Aggregations practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.