DWHW_Assignment

advertisement
King Saud University
College of Computer and Information Sciences
Department of Information Technology
IT 434 - Data warehousing and Data Mining
Practical Assignment
Due Date : 6th Nov 12
Student Name :
Lab time :
Serial # :
Student Name :
Lab time :
Serial # :
1
DWHW_Assignment_ Files.rar
Question #1 :
The management of Premiere Products, a distributor of appliances, housewares, and sporting
goods, has determined that the company’s recent growth needs additional analysis. The
management department has hired assigns you the task of developing a data warehouse in which
to keep track of sales usage statistics. The main requirements for this database are to:
- Integrate the following files ( Store.xslx , Prodcut.txt, Customer. Accdb, Order.xslx)
in one database and name it “SALES” where the content of each file acts as a table in
that database.
-
-
Draw the star schema, identify the dimensions tables, and create the fact table
“Fact_Sales” with the appropriate daily measure of the sales per-product, and perstore.
Show the total sales by different stores across all products
Show the total sales of products across all stores
Total number of entries in your fact table
Question #2 :
-
2
Provide the SQL command to create a Fact table from the tables that were provided to
you that contains Customer ID , Product ID , Store ID ? And print screen?
Provide the SQL command to display daily sales of Products sold in each city and
store this is the measure inside the fact table? ( Hint: use Store Table, and you might
create a temporary table to help )
Question #3 :
Create the reports that will meet the requirements listed in this problem’s introduction.
- Show the total sales by different stores across all products, also store’s city
- Show the total sales of products across all stores, also product’s description
- Total number of entries in your fact table
- Total sales for all products, all stores, across all days.
Create a 3D bar graph to show sales by store, by product, and by day.
Question #4 :
A. Provide the SQL command to display a table that shows Product ID , Product Price ,
Number of products sold, the Total Product Price for each Product that was sold on Day
= 1 and the Sum of all Products that were sold on Day = 1 ?
B. Provide a Pivot table for the table that was created from the previous step.
C. Create a Report for your table, and 3D bar graph
Please compress your solution into zip-file and upload it to your lab-Blackboard account
3
Download