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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

What are the objectives of Human resource planning ?

Answered: 1 week ago

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago