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, delivery_date, and the average total_price (as avg_price).

Stuck? Here's a hint!

Use:

GROUP BY ROLLUP(delivery_date), ROLLUP(category)