Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PRODUCT CUSTOMER Product_ID Product Name Product Desc Product_Type Customer ID Customer_Name Customer_Desc Customer_Category SALES Product ID Customer ID Region_ID Time_ID Sales Profit REGION TIME Time

image text in transcribed

PRODUCT CUSTOMER Product_ID Product Name Product Desc Product_Type Customer ID Customer_Name Customer_Desc Customer_Category SALES Product ID Customer ID Region_ID Time_ID Sales Profit REGION TIME Time ID Day Week Month Year Region_ID Street City Country Figure 1. A Sample Star Schema 1. Write a SQL statement to generate a 3 dimensional cube called CUBE1 that views Profits per State per, Product_Type, and per Month 2. Write a SQL statement to generate a 2 dimensional cube called CUBE2 directly from CUBE1. CUBE2 views Profits per State and per Product_Type 3. Convert the star schema to a snowflake schema by putting City, State, and Country in a separate dimension table called City. Please draw the resulting snowflake schema 4. Based on the generated snowflake schema, please write a SQL statement to create a cube that views Sales per Country, per Customer_Category, and per Year

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 2 Lnai 6322

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215882X, 978-3642158827

More Books

Students also viewed these Databases questions