In SQL window functions, what does ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING produce?

SQL Data Analyst Medium

SQL Data Analyst — Medium

In SQL window functions, what does ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING produce?

Key points

  • This option considers all rows in the partition, not just a subset
  • It is not limited to a running total or aggregate for only the current row
  • Helps in calculating cumulative totals over the entire partition

Ready to go further?

Related questions