What does the LEAD(revenue, 1) OVER (ORDER BY month) window function return?

SQL Data Analyst Medium

SQL Data Analyst — Medium

What does the LEAD(revenue, 1) OVER (ORDER BY month) window function return?

Key points

  • LEAD(revenue, 1) retrieves the value from the next row
  • The function is used for comparing values with subsequent rows
  • It helps in analyzing trends over time

Ready to go further?

Related questions