Chapter 4 · Aggregations
20. Account Types with Many Accounts
Easy10 XPFinance
The product team wants to find account types that have more than 100 accounts. Return the account_type and account_count for each qualifying type, sorted by account_count descending.
Tables
- PKidINT
- FKcustomer_id→ customers.idINT
- account_typeTEXT
- balanceREAL
- currencyTEXT
- opened_atTEXT
- 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.