Write the sql necessary to extract and process the data

Assignment Help Database Management System
Reference no: EM131481184

Overview

A complete data warehouse with a snowflake schema should be designed to address key management objectives in a common business situation, e.g., hotel industry. Two operational databases for that domain are evaluated and a series of SQL procedures written to extract, transform and load data from the two operational databases into the data warehouse. SQL needed to address management's key objectives using the fact and dimension tables of the data warehouse are created along with a description of the results suitable for presentation to management.

Assignment Resources

1) ER diagrams for two operational databases for the business situation to review:

Corp1ERD-Revised-Ayyaz.jpg , Corp2ERD-Revised-Ayyaz.jpg

2) Data dictionaries for two operational databases for the business situation to review:

Corp1Data Dictionary.xls , Corp2Data Dictionary Revised.xls

3) Slides from the DW project Web Ex:

DataWarehouseProjectOverview.pptx

4) IBM Website Description of Fact Table Grain:

https://www.ibm.com/support/knowledgecenter/SS9UM9_9.1.0/com.ibm.datatools.dimensional.ui.doc/topics/c_dm_design_cycle_2_idgrain.html

Business Situation Description:

You work for a large corporation that has just purchased 2 hotel and resort corporations each consisting of over 100 hotels. Each Corporation operates a custom database. You are provided the data dictionary and ER diagrams for the two operational databases. Management would like you to design a data warehouse that allows them to achieve the most competitive advantage possible.

(Note: The databases you will evaluate come from student groups in another class responding to the Hokie Resort problem. This problem also is provided for your review.)

Please name the document "Leslie_Alexandra _Project2.docx."

1 Review the submission Hokie Resort situation description to understand the problem domain(see Business Situation Description below)

2 Write the three most important questions that management must answer to achieve a competitive advantage in the hotel market.
Submit the questions and a brief (1-2 pages) explanation/justification of why these are the most important questions.

3 Design a Data Warehouse Star or Snowflake schema that is sufficient for addressing these questions.
Submit an ER Model of your data warehouse schema.
See this example of a schema from the Hokie Hospital problem: HospitalDWSchema.vsdx
Example as pdf: Visio-HospitalDWSchemav2.pdf

4 Implement your Data Warehouse Star or Snowflake schema in MySQL or other DBMS.
Submit MySQL of other DDL that implements your data warehouse schema.

5 Populate MySQL or other DB with sufficient rows to demonstrate your Data Warehouse

This will require you to create rows for all dimension (including time) and fact tables in your Data Warehouse. You must insert sufficient rows in the DW to be able to execute the ROLLUP queries for the final step in this assignment.
This script is from the textbook and loads a sample data warehouse: DW-DBINIT.SQL

6 Analyze the ER diagram and data dictionary from both of the operational databases to determine if the two operational hotel databases have the data needed for your data warehouse.

For each DB, create a mapping that shows the tables from that DB that are used to create rows in your data warehouse tables. For each data warehouse table, describe how the operational data is aggregated to create a row in the table. Submit your mapping and aggregation summary in the following format.

DatawarehouseTable Operational DB Table Aggregation/Sum
PatientDim Corp1: Patient No aggregation, each row is an instance in the DW.
PatientDim Corp2: Customer No aggregation, each row is an instance in the DW.
MediationsFact Corp1: Prescriptions Count and average amount of drug given are created.
MediationsFact Corp2: Drugs Provided Count and average amount of drug given are created.

(Note: If an operational database does not contain the data needed for your data warehouse design, then propose revisions to the existing tables in the DB or define additional tables to be populated in the DB so that it will contain the data needed for your data warehouse). (5 points)

7 Write the SQL necessary to extract and process the data from the two operational databases so that it will be suitable for your elements of your data warehouse.

The mapping you made in question 4 should help in this process. This requires writing SQL procedures that include SELECT statements from the operational DBs and INSERT INTO the data warehouse tables (Note: you do not have to make the procedures work). You should extract and load data for two of your dimension tables and one of your fact tables from each operational DB. In addition, you should show the population of the time dimension and include it on your fact table rows. Pay attention to the correct grouping and aggregation necessary to transform the operational data into the form needed for your data warehouse. An example of the procedure file is provided from a previous semester using the Hokie Hospital problem in this file: . Your task is to make a similar procedure that will extract the data from the operational databases into your data warehouse design.

Submit your procedures with a .sql file extension so that we can review them within Notepad++. While any logical organization of procedures is acceptable (provide a brief justification/rationale for others), the preferred approach is to create one SQL procedure for each dimension table and one for the fact table from your data warehouse. These procedures should access both operational DBs and be as simple as possible.

Find an example of the procedures needed here:
Dimension table: Q5_SampleProcedure_Hokie_Hospital_DimensionV2.sql
Fact table: Q5_SampleProcedure_Hokie_Hospital_FactV2.sql

8 Write the SQL that will be needed to answer the three most important questions using your data warehouse. This requires writing 3 SQL statements/procedures.

Attachment:- Project Instructions.rar

Verified Expert

In this assignment we have learned about fact table and other data warehouse concept.Here we learn star schema which help understand the db warehouse design.DDL is use to add rows in dbms and also learn how store procedure are help to make execution fast . data warehouse are manage large database system and easy to maintain and generates reports,find issue and make simple to handle system.

Reference no: EM131481184

Questions Cloud

Which of the given markets are oligopolistic : Which of the following markets are oligopolistic?
How many chromosomes does a normal human gamete have : How many pairs of chromosomes does a normal human somatic cell have? How many chromosomes does a normal human gamete have?
What would be your tit-for-tat strategy : At many local concerts, the crowd stands for some songs and sits for others. You are a fan of the concerts but not of having to stand; you prefer to stay.
Will the entire class skip the last question : After teaching a class on game theory, your instructor announces that if every student skips the last question on the next exam, everyone will receive full.
Write the sql necessary to extract and process the data : Write the SQL necessary to extract and process the data from the two operational databases so that it will be suitable for your elements of your data warehouse.
Define the network externalities : For which of the following are network externalities important?
Common mistakes which start-up companies do marketing wise : What are the most common mistakes which start-up companies do marketing wise? What are the pitfalls which they should avoid?
Industrialization after the civil war : Discuss three (3) major aspects of industrialization between 1865 and 1920. In your response, consider society, the economy, and politics.
Discuss the dominant strategy : Your economics instructor is at it again. This time, you have to do a two-student project. Assume that you and your partner are both interested in maximizing.

Reviews

inf1481184

5/22/2017 4:46:15 AM

Hi Expertsmind, I'm expressing gratitude toward all of you for the exceptional papers. You will without a doubt get service from me later on. Will subtly inform others concerning all of you, since "Verbal" is the best promotion. Much appreciated once more

inf1481184

5/22/2017 4:45:39 AM

Hi, thank you very much for submitting a proposal. I would love to accept; however, it's very important that I receive this order completed before midnight on 3. Is that doable? I have just submitted payment so that y'all can get started ASAP, as I am at work, and I don't want you to have to wait on my responses. Please confirm midnight tomorrow is doable whenever you get a chance! Thank you!! Hi Team - I have 36 hours before I need to submit. Thanks! Please provide all the attachments as mentioned in the requirement as they are asking for login ID. Or please provide ID and password asap. All 11 attachments are below: 23170444_1Project 2 Attachments.zip Great, thank you. Do you know what time you expect to have the project completed?

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd