You are on page 1of 1

TIS3351 Advanced Databse

Lab 6 – Data Warehouse

Star Schema

Based on the Sales table given in the previous, answer the following questions:

SalesPerson Product Size Colour Sales_Quantity


Sandy T-Shirt L Red 100
Ally Raincoat M Red 20
Sandy T-Shirt L Yellow 50
William Pants XL Beige 15
William Pants L Black 40
Sandy Pants L Black 50
Ally Raincoat L Pink 60
William Raincoat S Green 50
Joshua T-Shirt L Blue 35
Joshua Pants M Grey 150

1 What makes Sales a fact table? Explain your answer.

2 What are the dimensions of Sales?

3 Draw ERD of the star schema for Sales fact table and its associated dimension
tables.

4 Implement the ERD and insert the sample data.

5. Modify the SQL queries in the previous lab, Q2 to Q5 and run them on the star
schema for Sales. Show the results of each query.

You might also like