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