On January 28th at 9:00 UTC Academy will be unavailable for 10 minutes due to planned maintenance break.
Kickstart 2020 with new opportunities! - hours only!Up to 80% off on all courses and bundles.-Close
GROUP BY – Recap


Good job! You know the drill. It's your turn to write a similar query.


Show how much was spent, on average: for each Supplier, in each Category, for each Supplier in general; and in general among all suppliers and categories.

Show the following columns: Supplier, Category, the average TotalPrice (rename the column to AvgPrice), and two new columns (S and C) denoting whether the columns Supplier or Category are used in the grouping (0 if used, 1 otherwise).