Skip to main content
All Problems
easy0% acceptance

Number of Customers Per Branch City

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.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
emailTEXT
phoneTEXTNULL
date_of_birthTEXT
cityTEXT
stateTEXT
countryTEXT
created_atTIMESTAMP
postgresql

Run your query to see results

Press Ctrl + Enter to execute