Answered step by step
Verified Expert Solution
Link Copied!

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

  1. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mathematics for Economics and Business

Authors: Ian Jacques

9th edition

129219166X, 9781292191706 , 978-1292191669

More Books

Students also viewed these Mathematics questions