23. High Cost Admissions with Doctor Specialties

Easy Netflix Joins (All Types)
Query Rules
  • The query columns and order must match the expected result schema.
  • NULL values should be handled appropriately where applicable.
  • The grader compares output values and sorting order to evaluate.

Schema Browser

Click a table's header to toggle expand/collapse.
patients
10 cols
doctors
4 cols
admissions
7 cols
province_names
2 cols

Reference Solution

Expected SQL
SELECT a.admission_id, (d.first_name || ' ' || d.last_name) as doctor_name, d.specialty, a.admission_cost FROM admissions a JOIN doctors d ON a.attending_doctor_id = d.doctor_id WHERE a.admission_cost > 5000;
SQL Editor
Ctrl+Enter to run
Console Output

Console Terminal

Write your query and click "Run Query" (Ctrl + Enter) to see results and testcase validation.