Home › Glossary › Window function

GLOSSARY TERM

Window function

See it in the glossary A–Z

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

DBX-DEPDP-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