Advertisement
Beginner SQL & Database Querying, Advanced SQL

What are window functions in SQL?

Short answer

Functions calculating across related rows without grouping.

Save SQL & Database Querying mock interview
Advertisement
AModel answer
Functions calculating across related rows without grouping.
Example

Running total.

Real-world example
Window functions helped an analyst calculate running totals and rankings easily.
Likely follow-ups
  • What are window functions
  • What are CTEs
  • What are subqueries
Related topics