Question
Complete the Project Questions 12.58 on pages 574-575. 12.58. Based on the discussion of the Heather Sweeney Designs operational database (HSD) and dimensional database (HSD_DW)
Complete the Project Questions 12.58 on pages 574-575.
12.58. 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. Using the SQL statements shown in Figure 12-13, create the HSD_DW database in a DBMS.
B. What possible transformations of data were made before HSD_DW was loaded with data? List some possible transformation, showing the original format of the HSD data and how they appear in the HSD_DW database.
C. Write the complete set of SQL statements necessary to load the transformed data into the HSD_DW database.
D. Populate the HSD_DW database using SQL statements you wrote to answer part C.
E. Figure 12-35 shows the SQL code to create the SALES_FOR_RFM fact table shown in Figure 12-18. Using those statements, add the SALES_FOR_RFM table to your HSD_DW database.
F. What possible transformations of data are necessary to load the SALES_FOR_RFM table? List some possible transformations, showing the original format of the HSD data and how they appear in the HSD_DW database.
G. Write an SQL query similar to SQL-Query-CH12-02 on page 551 that uses the total dollar amount of each days product sales as the measure (instead of the number of products sold each day).
H. Write the SQL view equivalent of the SQL query you wrote to answer part G.
I. Create the SQL view you wrote to answer part H in your HSD_DW database.
J. Create a Microsoft Excel 2013 workbook named HSD_DW-BI-Exercise.xlsx.
K. Using either the results of your SQL query from part G (copy the results of the query into a worksheet in the HSD_DW-BI-Exercise.xlsx workbook and then format this range as a worksheet table) or your SQL from part I (create an Excel data connection to the view), create an OLAP report similar to the OLAP report shown in Figure 12-32. (Hint: If you need help with the needed Microsoft Excel actions, search in the Microsoft Excel help system for more information).
L. Heather Sweeney is interested in the effects of payment type on sales in dollars.
Modify the design of the HSD_DW dimensional database to include a PAYMENT_TYPE dimensional table.
Modify the HSD_DW database to include the PAYMENT_TYPE dimensional table.
What data will be used to load the PAYMENT_TYPE dimensional 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.
Populate the PAYMENT_TYPE and PRODUCT_SALES tables using the SQL statements you wrote to answer part 3.
Create the SQL queries or SQL views needed to incorporate the PaymentType attribute.
Create a Microsoft Excel 2013 OLAP report to show the effect of payment type on product sales in dollars.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started