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