PostgreSQL - Window Functions in PostgreSQL
Identify the error in this query that tries to calculate a cumulative sum of sales per region:
SELECT region, sales, SUM(sales) OVER (PARTITION region ORDER BY date) AS running_total FROM sales_data;
