Chapter 4 · Aggregations
19. Minimum and Maximum Loan Interest Rates
Easy10 XPFinance
The product pricing analyst needs a quick snapshot of the interest rate range. Write a single query that returns the minimum interest_rate, maximum interest_rate, and the difference between them (as rate_spread).
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.