• The "by customer" part is implemented using group by c.name.

  • The sum is applied to Products and Items within each group.

  • The column(s) grouped by must appear in the select clause.