Problem

Based on the discussion of the Heather Sweeney Designs operational database (HSD) and di...

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 8-10, create the HSD-DW database in a DBMS.

B. 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.

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 the SQL statements you wrote to answer part C.

E. Figure 8-23 shows the SQL code to create the SALES_FOR_RFM fact table shown in Figure 8-15. Using those statements, add the SALES_FOR_RFM table to your HSD-DW database.

F. 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.

G. 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.

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

I. Write an SQL query similar to the one shown on page 456 that uses the total dollar amount of each day’s product sales as the measure (instead of the number of products sold each day).

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

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

L. Create a Microsoft Excel 2013 workbook named HSD-DW-BI-Exercises .xlsx.

M. 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-17. (Hint: If you need help with the needed Microsoft Excel actions, search in the Microsoft Excel help system for more information.)

N. 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.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search