Introduction
GROUP BY – Recap
ROLLUP
Summary

Instruction

Good job! It's your turn now—try a similar exercise with the Delivery table.

Exercise

Show how much was spent on average for each Category on each day and on each day in general. Show the following columns: Category, DeliveryDate, and the average TotalPrice (name the column AvgPrice). Do not show a single general average among all days and categories.

Stuck? Here's a hint!

Use:

GROUP BY 
  ROLLUP(Category),
  DeliveryDate