Lesson 2.2 · Pro

GROUP BY: one row per group

Split rows into groups and summarise each group.

In this lesson

  1. One row per group
  2. Group by more than one column
  3. The GROUP BY rule
  4. Shorthand: GROUP BY 1, 2
  5. Sort the groups