Chapter 4 · Aggregations
26. Loan Count by Status
Easy10 XPFinance
Produce a summary showing how many loans exist for each loan status. Return the status and the loan_count. Order by loan_count descending.
Tables
- PKidINT
- FKcustomer_id→ customers.idINT
- loan_typeTEXT
- principalREAL
- interest_rateREAL
- term_monthsINT
- start_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.