Skip to main content
All Problems
medium0% acceptance

Largest Account Balance Per Customer

For each customer who has at least one account, find their account with the highest balance. Return customer_id, first_name, last_name, account_type, and balance. Sort by balance descending. Limit to 25.

Schema

🔑idINT
first_nameTEXT
last_nameTEXT
emailTEXT
phoneTEXTNULL
date_of_birthTEXT
cityTEXT
stateTEXT
countryTEXT
created_atTIMESTAMP
postgresql

Run your query to see results

Press Ctrl + Enter to execute