PostgreSQL - Window Functions in PostgreSQL
Given the table
sales with columns region, month, and amount, what will this query return?SELECT region, month, amount, SUM(amount) OVER (PARTITION BY region ORDER BY month) AS running_total FROM sales ORDER BY region, month;
