About the “30-Day Hospital Readmission Rate Benchmark” SQL Problem
Business Scenario
Federal health authorities track unplanned 30-day hospital readmissions. Clinical analysts use CTEs to measure what fraction of discharged patients were readmitted to the facility within 30 days.
Expected Output & Criteria
Single row summary showing total discharges, readmissions within 30 days, and readmission rate percentage.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE admissions_record (
stay_id INT PRIMARY KEY,
patient_id INT NOT NULL,
admission_date DATE NOT NULL,
discharge_date DATE NOT NULL
);Target SQL Clauses & Operators
Want more CTEs practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.