Lesson 9.1 · Pro

OVER(): totals without losing rows

Window functions add a group total to every row, so you can compare each row with its group.

In this lesson

  1. A total on every row with OVER ()
  2. A group total with PARTITION BY
  3. Each row's share of its group