The finance team wants to see total deposits broken down by account type. Calculate the sum of balance for each account_type. Return the account_type and total_balance, sorted by total_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