Skip to main content
All Problems
easy0% acceptance

Accounts by Type

The product team wants to see all checking and savings accounts. Return the id, customer_id, account_type, and balance for accounts whose type is either 'checking' or 'savings', ordered by balance descending.

Schema

🔑idINT
🔗customer_idINT
account_typeTEXT
balanceREAL
currencyTEXT
opened_atTEXT
statusTEXT
postgresql

Run your query to see results

Press Ctrl + Enter to execute