Chapter 4 · Aggregations
44. Patient Count by Birth Decade
Easy10 XPHealthcare
A demographic study needs patients grouped by their birth decade (e.g., 1950, 1960, 1970). Return each decade and the number of patients born in that decade, sorted by decade.
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.