Question: Question 3 : [ CLOSI [ 1 5 Marks ] A retail company wants to analyze the sales performance of its products across various regions
Question :
CLOSI Marks
A retail company wants to analyze the sales performance of its products across various regions and store types. The goal is to calculate the total sales for each combination of region and store type, along with subtotals for each region, each store type, and the overall grand total.
Using the provided table, what is the output of the following query? marks
A SELECT regionid store type, SUMsalesamount AS totalsales
FROM salesperformance
GROUP BY CUBEregionid storetype;
B If you have mathbfN dimensions, the number of combinations including subtotals and grand totals generated by a CUBE operation is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
