EMC Proven Professional – Data Science and Big Data Analytics — Question 12

When would you use GROUP BY ROLLUP clause in your OLAP query?

Answer options

Correct answer: A

Explanation

The GROUP BY ROLLUP clause is designed to include all subtotals and the grand total in the output, making Option A the correct choice. Options B and C only provide partial information by excluding either subtotals or grand totals, while Option D limits the output by focusing on specific combinations, which does not utilize the full capability of the ROLLUP clause.