About the “Emergency Department Conversion Funnel to Inpatient Admission” SQL Problem
Business Scenario
Hospital executive boards monitor emergency triage drop-off: how many presenting ER patients are triaged, examined by a physician, and ultimately admitted to inpatient hospital beds.
Expected Output & Criteria
Conversion funnel counts and admission rate percentage from the emergency department.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE er_patient_journey (
visit_id INT PRIMARY KEY,
patient_mrn VARCHAR(20) NOT NULL,
examined_by_md BOOLEAN NOT NULL,
admitted_to_ward BOOLEAN NOT NULL
);Target SQL Clauses & Operators
COUNTROUND
Want more Business Analytics practice?
Explore the full syllabus of 14 exercises, syntax guides, and interview pitfalls.