Skip to main content
All Problems
easy0% acceptance

Count Patients per Blood Type

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.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
date_of_birthTEXT
genderTEXT
emailTEXT
phoneTEXTNULL
blood_typeTEXT
cityTEXT
stateTEXT
🔗insurance_idINTNULL
created_atTIMESTAMP
postgresql

Run your query to see results

Press Ctrl + Enter to execute