Home › Glossary › Window function

Window function

A function evaluated OVER a window defined by PARTITION BY, ORDER BY and optionally a frame; unlike GROUP BY aggregation it doesn't collapse rows, but adds to each one a value worked out from its related rows. Examples are RANK, ROW_NUMBER, LAG and running totals.

Read more: Microsoft Learn

In the Ultra Transcenders books

DP-700DP-800

Each book explains Window function in context, with comparison tables and the common traps.

Terms in this definition

Related terms

See Window function in the full glossary