Skip to main content
All Problems
medium0% acceptance

Largest Transaction Per Account

For each account, find the single largest transaction by amount. Return account_id, transaction_date, type, and amount for each account's maximum transaction. Sort by amount descending.

Schema

🔑idINT
🔗account_idINT
transaction_dateTEXT
typeTEXT
amountREAL
balance_afterREAL
descriptionTEXT
reference_numberTEXT
postgresql

Run your query to see results

Press Ctrl + Enter to execute