Chapter 4 · Aggregations
45. Visit Count by Day of Week
Easy10 XPHealthcare
Scheduling wants to understand visit distribution across the week. Return the day of the week (0=Sunday through 6=Saturday) and the number of visits on that day, sorted by visit count descending.
Tables
- PKidINT
- FKpatient_id→ patients.idINT
- FKdoctor_id→ doctors.idINT
- visit_dateTEXT
- diagnosisTEXT
- notesTEXT
- follow_up_dateTEXT
- statusTEXT
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.