Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Tasks
10. Task 5

Instruction

Well done! But which cake is the most popular overall?

Exercise

Select the name of each cake and the total number of cakes purchased. (Name this column total_purchased.) Sort records in descending order by total_purchased.

Stuck? Here's a hint!

Use the SUM() function to find the total number of cake slices sold.

Check out this exercise of the SQL Basics course to learn more.