End of Summer - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
CUBE
Summary

Instruction

Well done! You know the drill; it’s your turn now.

Exercise

Show the average wildfire duration for all grouping combinations based on the year and month columns. Also, group each row by cause.

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

Stuck? Here's a hint!

Use the following template:

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