Chapter 5 · JOINs
36. Credit Card Utilization Rate
Medium20 XPFinance
The risk team needs to assess credit card utilization. For each credit card (card_type = 'credit') that has a credit_limit > 0, compute the utilization rate as (account balance / credit_limit * 100). Return card_number, credit_limit, account balance, and utilization_pct rounded to 1 decimal. Sort by utilization_pct descending.
Tables
- PKidINT
- FKcustomer_id→ customers.idINT
- account_typeTEXT
- balanceREAL
- currencyTEXT
- opened_atTEXT
- statusTEXT
- PKidINT
- FKaccount_id→ accounts.idINT
- card_numberTEXT
- card_typeTEXT
- expiry_dateTEXT
- statusTEXT
- credit_limitREAL
- issued_atTEXT
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.