Chapter 4 · Aggregations
36. Count Patients per Blood Type
Easy10 XPHealthcare
The blood bank coordinator needs an inventory forecast. Count the number of patients for each blood type. Return the blood_type and patient_count, ordered by patient_count descending.
Tables
- PKidINT
- first_nameTEXT
- last_nameTEXT
- date_of_birthTEXT
- genderTEXT
- emailTEXT
- phoneTEXT
- blood_typeTEXT
- cityTEXT
- stateTEXT
- FKinsurance_id→ insurance.idINT
- created_atTIMESTAMP
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.