On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
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,
  • order_items.