Based on the discussion of the Heather Sweeney Designs operational database (HSD) and dimensional database (HSD-DW) in

Question:

Based on the discussion of the Heather Sweeney Designs operational database (HSD) and dimensional database (HSD-DW) in the text, answer the following questions.


A. What transformations of data were made before HSD-DW was loaded with data? List all the transformations, showing the original format of the HSD data and how they appear in the HSD-DW database

B. Populate the HSD-DW database, using the SQL statements you wrote to answer part C.

C. What transformations of data are necessary to load the SALES_FOR_RFM table? List any needed transformations, showing the original format of the HSD data and how they appear in the HSD-DW database.

D. What data will be used to load the SALES_FOR_RFM fact table? Write the complete set of SQL statements necessary to load this data.

E. Populate the SALES_FOR_RFM fact table, using the SQL statements you wrote to answer part G.

F. Write an SQL query that uses the total dollar amount of each day’s product sales as the measure (instead of the number of products sold each day).

G. Write the SQL view equivalent of the SQL query you wrote to answer part I.

H. Create the SQL view you wrote to answer part J in your HSD-DW database.

I. Using either the results of your SQL query from part K (copy the results of the query into a worksheet in the HSD-DW-BI.xlsx workbook and then format this range as a worksheet table) or your SQL view from part L (create a Microsoft Excel data connection to the view), create an OLAP report similar to the OLAP report shown in Figure 8-16. (Hint: If you need help with the needed Microsoft Excel actions, search in the Microsoft Excel help system for more information.)

J.    Heather Sweeney is interested in the effects of payment type on sales in dollars.


1. Modify the design of the HSD-DW dimensional database to include a PAYMENT_TYPE dimension table.

2. Modify the HSD-DW database to include the PAYMENT_TYPE dimension table.

3. What data will be used to load the PAYMENT_TYPE dimension table? What data will be used to load foreign key data into the PRODUCT_SALES fact table? Write the complete set of SQL statements necessary to load these data.

4. Populate the PAYMENT_TYPE and PRODUCT_SALES tables, using the SQL statements you wrote to answer part 3.

5. Create the SQL queries or SQL views needed to incorporate the PaymentType attribute.

6. Create a Microsoft Excel 2013 OLAP report to show the effect of payment type on product sales in dollars.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Database Concepts

ISBN: 978-0133544626

7th edition

Authors: David M. Kroenke, David J. Auer

Question Posted: