Chapter 3 · Sorting & Limiting
14. Active Checking Accounts
Easy10 XPFinance
A bank auditor needs a list of all checking accounts that are currently active. Return the account id, customer_id, balance, and opened_at for every account where account_type is 'checking' and status is 'active'. Order by balance 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.