About the “Emergency Room Urgent Triage Filtering” SQL Problem
Business Scenario
MetroHealth Hospital's emergency department is handling a surge of incoming patients. Charge nurses need an immediate list of patients classified under high-urgency triage levels ('Resuscitation' and 'Emergent') who are still awaiting clinical examination.
Expected Output & Criteria
List of waiting emergency patients under Resuscitation or Emergent triage, sorted chronologically.
Database Table Schema (PostgreSQL DDL)
PostgreSQL 16 WASMThis challenge executes directly against the following relational schema in your browser:
CREATE TABLE emergency_visits (
visit_id VARCHAR(10) PRIMARY KEY,
patient_name VARCHAR(100) NOT NULL,
triage_level VARCHAR(30) NOT NULL,
status VARCHAR(20) NOT NULL,
vital_pulse INT NOT NULL,
arrival_time TIMESTAMP NOT NULL
);Target SQL Clauses & Operators
Want more Fundamentals practice?
Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.