Kickstart 2020 with new opportunities! - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
CUBE
Summary

Instruction

All right, it's your turn now.

Exercise

Show the sum of damage_repair_cost for grouping combinations based on the columns year, month, and cause. Treat year and month as a single column.

Show the following columns in the query result: year, month, cause, and sum_damage_repair_cost.

Stuck? Here's a hint!

Use the following template:

SELECT
  ...
FROM ...
GROUP BY 
  CUBE ((x, y), z)