PostgreSQL - Aggregate Functions and GROUP BY
You have a table
transactions with columns user_id and amount. How do you find the total amount spent by each user?