Window Function

A SQL calculation that reads other rows, such as the same quarter a year earlier or a running total, while keeping every row in the result. LAG(revenue, 4) over rows ordered by quarter returns revenue four quarters back, which is how year-on-year growth is computed in one query. Partition by company or segment, or the row it reads belongs to something else.

Practise it

Six graded challenges against a real SQLite database in your browser. Cohort triangles, rolling actives, revenue retention, and why each number is easier to misread than it looks.

Open SQL Cohort Drill, free, 25 min

Where Window Function comes up

Keep reading

Technology company financial models

Related Technology terms

Go further than reading

The written material is free. These are the ways to get it applied to your own work.

Browse the full glossary: 430 finance recruiting and technical terms, in plain English.