Professional Documents
Culture Documents
NAME:
Page
4. Refer to question 3 above. Suppose the grocery stores data mart also has a 2-way
aggregate fact table that summarizes weekly sales of item categories. If there are on
average 100 items per category and items from all categories are sold each week, how
many additional rows would be added to this fact table per week?
Page
Page
14. The star schema is better than the snowflake schema in the following way:
a. It wastes less storage space
b. It is easier to maintain and keep consistent
c. It is easier to understand by end-users
d. It is more efficient for transaction storage
e. None of the above
15. List at least two problems with using operational system keys as primary keys for the
dimension tables.
16. Suppose a medical data warehouse has the dimensions patient, clinic, time, and
payment_method. The fact table records medical check-up events or instances with
attributes like bill_amount, cost, body_emperature, eye_color, and number_of_tests.
Draw a snowflake schema for the data warehouse. Show all relevant attributes in the
dimension tables. List all primary and foreign keys. Show the relationships between
the tables (Read questions 17 and 18 also; use the backside of the previous page to
answer this question).
17. Refer to the medical data warehouse described in question 16 above. For each of the
attributes in the fact table, mention whether it is additive, semi-additive, non-additive,
or degenerate.
Page
18. Refer to the medical data warehouse snowflake schema that you created in question
16 above. Suppose there are 25,000 patients, 100 clinics, 365 days, and 4 payment
methods. Assume on average 250 patients are checked per clinic per day.
a. How many rows of the fact table are required to answer the query: What is the
total cost of medical check-ups at clinic XYZ during the first 7 days of May,
2004?
b. How many table joins are needed to answer the query in 18(a) based on the
snowflake schema you designed in question 16?
Create a new star schema that includes a 1-way aggregate fact table (along product
category) and a 2-way aggregate fact table (along product category and time quarters).
Answer on the backside of the previous page.
Page