Chapter 4 · Aggregations
06. Count Customers per State
Easy10 XPE-Commerce
The expansion team wants to know where the customer base is concentrated. Count the number of customers in each state. Return the state and customer_count, sorted by customer_count descending.
Tables
- PKidINT
- first_nameTEXT
- last_nameTEXT
- emailTEXT
- phoneTEXT
- cityTEXT
- stateTEXT
- countryTEXT
- 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.