Instruction
Good! Try a short exercise on your own now.
Exercise
Show the average damage repair costs for all grouping combinations based on the year and month columns. Group all rows by cause. Replace any NULL values in month with the word 'ALL'.
Show the following columns in the query result: year, month, cause, and avg_damage_repair_cost.
Stuck? Here's a hint!
Use the following template:
SELECT COALESCE(x, 'ALL') AS month, ... FROM ... GROUP BY CUBE (x, y), z;



