Chapter 5 · JOINs
05. Number of Customers Per Branch City
Easy10 XPFinance
The branch planning team wants to know how many customers live in each city that has a branch. Return the branch name, city, and the count of customers in that city. Sort by customer count descending.
Tables
- PKidINT
- first_nameTEXT
- last_nameTEXT
- emailTEXT
- phoneTEXT
- date_of_birthTEXT
- cityTEXT
- stateTEXT
- countryTEXT
- created_atTIMESTAMP
- PKidINT
- nameTEXT
- cityTEXT
- stateTEXT
- manager_nameTEXT
- opened_atTEXT
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.