About the “Surgical Suite Block Time Utilization Rate” SQL Problem
Business Scenario
Hospital surgical leadership monitors surgical suite utilization. Surgical suites are scheduled in 480-minute blocks (8 hours). Efficiency audits compute what percentage of allocated block time was utilized for active surgery.
Expected Output & Criteria
Surgical rooms with total surgery minutes and utilization percentage.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE operating_rooms (
room_id INT PRIMARY KEY,
room_name VARCHAR(50) NOT NULL
);
CREATE TABLE surgeries (
surgery_id INT PRIMARY KEY,
room_id INT REFERENCES operating_rooms(room_id),
duration_minutes INT NOT NULL
);Target SQL Clauses & Operators
Want more CTEs practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.