1
SQLIntermediate#queries#windows
They read a value from a previous or following row in the same window, which makes period-over-period comparisons easy without a self join.
SELECT month, revenue,
revenue - LAG(revenue) OVER (ORDER BY month) AS growth
FROM monthly_sales;