PostgreSQL - Aggregate Functions and GROUP BY
You have a table
orders with columns customer_id, order_date, and total. How would you write a query to find the total sales per customer per month?