Chapter 4 · Aggregations
40. Departments on Each Floor
Easy10 XPHealthcare
Facilities management needs to know how many departments are on each floor of the hospital. Return floor and dept_count, ordered by floor.
Tables
- PKidINT
- nameTEXT
- floorINT
- FKhead_doctor_id→ doctors.idINT
- budgetREAL
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.