Best April deals - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
GROUPING SETS
Summary

Instruction

How about trying this exercise?

Exercise

Show the average interest amounts for the following grouping sets:

  1. ROLLUP by year and quarter
  2. country

Show the following columns in the query result: year, quarter, country, and avg_interest.

Stuck? Here's a hint!

In the GROUP BY clause, use:

GROUPING SETS
(
  ROLLUP (year, quarter),
  (country)
)