Skip to main content
All Problems
medium0% acceptance

Largest Withdrawal Per Customer

For each customer, find their single largest withdrawal transaction. Return the customer's first_name, last_name, the transaction amount, and the transaction_date. Use a correlated subquery or window function to pick the maximum withdrawal. Order by amount descending.

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