Phase 3 · SQL for Data Analysis

Topics

Window Functions

Part of the Data Analyst Roadmap.

Summary

Functions like ROW_NUMBER, RANK, and running totals that calculate across a set of rows related to the current row, without collapsing them the way GROUP BY does.

How to Learn This

  • 1Use ROW_NUMBER() to find the most recent order per customer.
  • 2Practice a running total using SUM() OVER (ORDER BY ...).
  • 3Learn the OVER (PARTITION BY ...) syntax — it's the key to most window function power.
InsideEdge

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — free on the InsideEdge app.

Download
InsideEdge