Lesson 5.5 · Pro

Join fan-out: when totals come out too big

Joining two one-to-many tables copies rows and inflates sums. Aggregate first, then join.

In this lesson

  1. See the problem
  2. Fix it: aggregate each table first
  3. Check row counts as you go