SQL - Advanced Window Functions
Given the table
Sales with columns id and amount, what will this query return?SELECT id, amount, LAG(amount) OVER (ORDER BY id) AS prev_amount FROM Sales;
