Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 1 . 1 Task Description Problem specification: Design a data mart solution for the SUN hotel chain that has over 2 0 0 hotels
Task
Task Description
Problem specification:
Design a data mart solution for the SUN hotel chain that has over hotels of different categories all over the world. On a daily basis in the OLTP system of each hotel, information on free, reserved, and unavailable rooms, booking agents and corresponding customers is stored. The hotel chain managers would like to build a data mart to analyse bookings versus checkouts and potential versus net revenue.
Information regarding bookings and payments are held in the OLTP booking system shown in Figure and the eTicket Data Source in Figure The primary keys are underlined and the foreign keys are followed by the sharp sign # and the name of the referenced table.
Figure Relational database schema for hotel room booking OLTP system
Figure Relational database schema derived from eTicket Data Source
The hotel chain managers would like integrate the two data sources hotel room booking OLTP system and eTicket Data Source depicted in Figure and Figure into a single data repository and critically analyze the daily, monthly and yearly income. Some frequent queries the managers would like to answer are the following.
For each room band and month, derive the portion of rooms which are reserved, free, and unavailable.
For each room band, derive the portion of rooms which are reserved. Associate a rank to each county according to the portion of checkout rooms for that county in a particular year with respect to all reserved rooms for that band. The band with the highest ratio of checkout rooms in a particular year must rank first.
For each room band and concert, produce the cumulative income of star rooms
Design
The data mart will store information from and The following cardinalities are known:
Room Types: ~
Hotels ~
Band:
Concerts:
Cities: ~
Counties: ~
Considering the designed data mart and its cardinality, decide whether and which materialized views are convenient to improve response time of the frequent queries consider all the frequent queries
Task Deliverables
Merge the database schemas depicted in Figure and Figure into a single schema integrated schema so that can store data from both the original databases. State any assumptions you may have considered while developing the integrated schema
Marks
Based on the integrated relational schema, design a data warehouse model DFM; in particular, the designed data mart must promptly answer to all the frequent queries
i Build the Attribute Tree from the integrated relational schema
ii Build the Fact Schema from Attribute Tree
Marks
Map the DFM model to a logical model ie relational Clearly display the main fact tables and dimensions.
Marks
Implement the above logical as a working data warehouse schema, under MySQLR or any other suitable DBMS Provide the DDL statements to create the proposed datawarehouse schema.
Marks
Considering the designed data warehouse and its cardinalities, decide whether and which materialized views are convenient to improve response time of the frequent queries consider all the frequent queries Explain the reasons for your choices Marks
Provide and implement a and implement a materialised views to answer the directors frequent queries
For each room band and month, derive the portion of rooms which are reserved, free, and unavailable. Marks
For each room band, derive the portion of rooms which are reserved. Associate a rank to each county according to the portion of checkout rooms for that county in a particular year with respect to all reserved rooms for that county. The county with the highest ratio of checkout rooms in a particular year must rank first. Marks
For each room band and concert, produce the cumulative income of star rooms Marks
Marks for will be awarded as follows: for correct query formulation and for appropriate display of results
RoomTypes RoomTyplID TypeDesc
RoomFacilities RoomFaciliyID FacilityDesc
County CountyID CountyName
Singer SingerID SingerForenames, SingerSurnames
City CityID CityName, StateID II: State
State StateID StateName, CountyID: County
Customer CustomerID CustomerForenames, CustomerSumames, CustomerEmail,
CityID II: City
Room RoomID RoomTypeID#: RoomTypes, RoomFaciliticsID #: RoomFacilities
Bookings CustomerID i: Customer, RoomID i: Room, DateBookingMade,
TimebookingMade, BookedStartDate, BookedEndDate, TotalPayementDueAmount
Concert ConcertID ConcertName, CityID I: City, SingerID: Singer
Buy CustomerID:: Customer, ConcertiD : : Concert, BuyDate, ConcertDate,
TotalPayementB
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