Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
GROUP BY – Recap
ROLLUP
Summary

Instruction

Good! Now it's your turn.

Exercise

Show how much was spent on average:

  • In each Category on each day
  • In each Category
  • On each day
  • In general

Show the following columns: Category, DeliveryDate, and the average TotalPrice (as AvgPrice).

Stuck? Here's a hint!

Use:

GROUP BY ROLLUP(DeliveryDate), ROLLUP(Category)