OVER() & Ranking
Add OVER() to an aggregate so the rows stop collapsing, number rows with ROW_NUMBER, RANK, and DENSE_RANK, and choose among the three when two rows tie at the same value.
PARTITION BY & ORDER BY
Split a window into one partition per group so an aggregate or ranking restarts at each boundary, order rows inside each partition, and watch ORDER BY turn a flat total into one that climbs row by row.
LAG, LEAD & Frames
Reach to a row's neighbors with LAG and LEAD, draw a window's edges explicitly with ROWS BETWEEN, and watch the default RANGE frame lump tied rows where ROWS makes them climb.
Window vs GROUP BY
Choose window when you need a value beside every row and GROUP BY when you need one row per group, rewrite either form as the other, and wrap a window in an outer query when you must filter on its result.