Lesson 4.2 · Pro

Put one total on every row

Compute a total once, then attach it to every row with CROSS JOIN to get percentages.

In this lesson

  1. Compute the total in its own CTE
  2. Attach it to every row with CROSS JOIN
  3. Same idea, different table
  4. Compare each row with the average