Instruction
Excellent! Let's try a similar exercise.
Exercise
Compare the category revenues for orders placed in December 2016 and December 2017. Show the following columns: category_name, december_2016, and december_2017.
Stuck? Here's a hint!
Use the following code to find orders placed in December 2016:
SUM(CASE
WHEN order_date >= '2016-12-01' AND order_date < '2017-01-01'
THEN oi.amount
ELSE 0.0
END) AS december_2016




