SELECT seller_name, sale_value,
LEAD(sale_value) OVER(ORDER BY sale_value) as next_sale_value
FROM sale
ORDER BY sale_value
Am I right to understand that lead must compulsorily have over(order by..) because the SELECT is executed before the final ORDER BY statement?