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