SQL - Advanced Window Functions
Given the table
sales with columns region and amount, what will this query return?SELECT region, amount, FIRST_VALUE(amount) OVER (PARTITION BY region ORDER BY amount DESC) AS max_amount FROM sales;
