About the “Emergency Room Average Door-to-Doctor Wait Times” SQL Problem
Business Scenario
Hospital clinical operations track Emergency Department triage wait times in minutes to ensure high-acuity patients are seen well within medical protocol thresholds.
Expected Output & Criteria
Average and maximum ER wait time by acuity tier.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMCREATE TABLE er_patient_encounters (
encounter_id INT PRIMARY KEY,
acuity_level INT NOT NULL,
wait_minutes INT NOT NULL
);Target SQL Clauses & Operators
Want more Aggregations practice?
Explore the full syllabus of 16 exercises and syntax guides.