The finance team wants to know how much money has been deposited into each account. Write a query that returns the account_id and the total deposit amount for each account. Only include deposit transactions. Order by total deposits 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