Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Generate a data cube that shows product category sales in each quarter of 1997. In order to see if there is clearly sales trend for
- Generate a data cube that shows product category sales in each quarter of 1997. In order to see if there is clearly sales trend for each product category, you want to show category first and then quarter, and then the quarterly sales of the category.
Select P.CategoryName, T.Quarter, SUM(Units) AS Total_Units, format (SUM(F.revenue),2)AS
Total_Revenue
From FactTable F
Join TimeDimension T ON F.DateID=T.DateID
Join ProductDimension P ON F.ProdctID = P.ProductID
Where T.Year=1997
Group by P.CategoryName, T.Quarter;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started