Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Exercises with artists, museums and their pieces of art
Exercises with the band members table
Exercises with tables of Japanese 100 Yen store
Exercises with employees, salaries and benefits

Instruction

Great! Here comes the next one!

Exercise

Select the name of each product category and the revenue (name that column Revenue) that it generated. Sort the results by Revenue in descending order.

Show a product category even if there were no sales for a particular category. In this case, the revenue is null.

Stuck? Here's a hint!

You need to LEFT JOIN the following tables together:

  • Categories,
  • Products,
  • OrderItems.