Introduction to Data Warehousing DBW624S1A We are going to build a logical model (like you did...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Introduction to Data Warehousing DBW624S1A We are going to build a logical model (like you did in Assignment 1) for a car rental agency, however, we'll have some enhancements which include a multi-model database and leveraging sources of data from Internet of Things. You are only building the logical model. You do not need to build the physical model. 1) (30 marks) Build your logical model to meet the following requirements: a. The FACT table contains rental facts. Each car rental by a customer is a record in the fact table. b. Each vehicle will have a Vehicle Identification Number (VIN) which uniquely identifies it c. You must have a CARS DIMENSION table. This is where you store a record for each rental car in your fleet d. You must have a CUSTOMER DIMENSION table. This is where you store information on each customer who rents a vehicle e. You must pick FOUR additional DIMENSION tables for your logical model f. You must have a REFERENCE table which contains anadian postal codes g. The actual signed rental contract will be in JSON format and must be stored with each fact. h. Some common queries that you must be able to handle from your logical model: i. The financial analysts will want to have weekly, monthly, quarterly and annual revenue reports by rental agency location. The business analysts will want to be able to calculate the utilization rate for each vehicle in the fleet - and - for the fleet as a whole by city. Note: utilization rate means what % of days is a particular car being rented versus sitting on the lot (idle). ii. The marketing team will want to be able to accomplish two things: 1. Assess the loyalty level of each customer based on the number of rental days they have paid for. This would be a no status, bronze, silver and gold status. 2. Offer promotions and specials for specific status levels for various time periods. You can assume the promotions offer a discount. iv. The legal team will want to have access to the original signed documents, requested by rental agreement number, to pull up agreements and look at insurance options chosen by customers. 11. 2) (20 marks) The service organization needs to know what repairs need to be performed on vehicles in between rental periods. Build a MAINTENANCE_EVENTS table which tracks information from the sensors within a specific vehicle. Assume the car has sensors which relay the following information. This table should track items like % of wear on break pads, tire pressure, wheel alignment, kms since last maintenance check, fluid levels. Each sensor will have a SENSOR ID. You'll need a REFERENCE table which maps SENSOR IDs to VINS. Each sensor type (breaks, alignment, fluids, tire pressure, etc) will require a threshold of when something requires maintenance - use the following: a. if break pads are down below 30% - they need to be replaced. b. If tire pressure is below 20 PSI they require maintenance, if the car has been driven 8.000 km since last maintenance, it requires maintenance, if alignment is off by more than 5% - maintenance is required. d. If fluids are below 50%, they require to be refilled 2 3) (20 marks) Build queries which map to the logical model you have already created which accomplish the following: a. Write a SQL query which will group together sensor results which require action and build out the maintenance report for a specific vehicle upon its return b. Write a SQL query which will generate financial reports on weekly, monthly, quarterly and annual revenue for each rental location c. Write a SQL query which will generate a utilization report for each vehicle and aggregate the results for the entire company d. Write a SQL query which will take the rental agreement number as input and return the actual, signed rental agreement 4) (20 marks) We now need to make some performance enhancements to our logical model. Write the command which would create the following SUMMARY TABLES a. A summary table of the utilization rates so that after each car rental is complete, the utilization rate is updated b. A summary table of the revenue by rental location for the week, month, quarter and year to date. c. A summary table which shows all of the maintenance performed on a specific vehicle 5) (10 marks) Re-write the queries in 3(b) and 3(c) now to leverage the new summary tables. Introduction to Data Warehousing DBW624S1A We are going to build a logical model (like you did in Assignment 1) for a car rental agency, however, we'll have some enhancements which include a multi-model database and leveraging sources of data from Internet of Things. You are only building the logical model. You do not need to build the physical model. 1) (30 marks) Build your logical model to meet the following requirements: a. The FACT table contains rental facts. Each car rental by a customer is a record in the fact table. b. Each vehicle will have a Vehicle Identification Number (VIN) which uniquely identifies it c. You must have a CARS DIMENSION table. This is where you store a record for each rental car in your fleet d. You must have a CUSTOMER DIMENSION table. This is where you store information on each customer who rents a vehicle e. You must pick FOUR additional DIMENSION tables for your logical model f. You must have a REFERENCE table which contains anadian postal codes g. The actual signed rental contract will be in JSON format and must be stored with each fact. h. Some common queries that you must be able to handle from your logical model: i. The financial analysts will want to have weekly, monthly, quarterly and annual revenue reports by rental agency location. The business analysts will want to be able to calculate the utilization rate for each vehicle in the fleet - and - for the fleet as a whole by city. Note: utilization rate means what % of days is a particular car being rented versus sitting on the lot (idle). ii. The marketing team will want to be able to accomplish two things: 1. Assess the loyalty level of each customer based on the number of rental days they have paid for. This would be a no status, bronze, silver and gold status. 2. Offer promotions and specials for specific status levels for various time periods. You can assume the promotions offer a discount. iv. The legal team will want to have access to the original signed documents, requested by rental agreement number, to pull up agreements and look at insurance options chosen by customers. 11. 2) (20 marks) The service organization needs to know what repairs need to be performed on vehicles in between rental periods. Build a MAINTENANCE_EVENTS table which tracks information from the sensors within a specific vehicle. Assume the car has sensors which relay the following information. This table should track items like % of wear on break pads, tire pressure, wheel alignment, kms since last maintenance check, fluid levels. Each sensor will have a SENSOR ID. You'll need a REFERENCE table which maps SENSOR IDs to VINS. Each sensor type (breaks, alignment, fluids, tire pressure, etc) will require a threshold of when something requires maintenance - use the following: a. if break pads are down below 30% - they need to be replaced. b. If tire pressure is below 20 PSI they require maintenance, if the car has been driven 8.000 km since last maintenance, it requires maintenance, if alignment is off by more than 5% - maintenance is required. d. If fluids are below 50%, they require to be refilled 2 3) (20 marks) Build queries which map to the logical model you have already created which accomplish the following: a. Write a SQL query which will group together sensor results which require action and build out the maintenance report for a specific vehicle upon its return b. Write a SQL query which will generate financial reports on weekly, monthly, quarterly and annual revenue for each rental location c. Write a SQL query which will generate a utilization report for each vehicle and aggregate the results for the entire company d. Write a SQL query which will take the rental agreement number as input and return the actual, signed rental agreement 4) (20 marks) We now need to make some performance enhancements to our logical model. Write the command which would create the following SUMMARY TABLES a. A summary table of the utilization rates so that after each car rental is complete, the utilization rate is updated b. A summary table of the revenue by rental location for the week, month, quarter and year to date. c. A summary table which shows all of the maintenance performed on a specific vehicle 5) (10 marks) Re-write the queries in 3(b) and 3(c) now to leverage the new summary tables.
Expert Answer:
Answer rating: 100% (QA)
1 Logical Model Entities and their attributes FACT table Rental Rental ID primary key Rental Date Return Date Rental Duration Rental Cost Vehicle Identification Number VIN foreign key to CARS DIMENSIO... View the full answer
Related Book For
Organizational Behaviour Concepts Controversies Applications
ISBN: 978-0132310314
6th Canadian Edition
Authors: Nancy Langton, Stephen P. Robbins, Timothy A. Judge, Katherine Breward
Posted Date:
Students also viewed these databases questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
The B.B. Lean Co. has 1.4 million shares of stock outstanding. The stock currently sells for $20 per share. The firm's debt is publicly traded and was recently quoted at 93 percent of face value. It...
-
Some dragonflies are observed to splash into the water to bathe, and then spin rapidly to shed the water. Slow-motion video shot at 240 frames per second shows that dragonflies complete one spin...
-
The information below pertains to Barkley Company for 2021. Net income for the...
-
What can be inferred by the following voltage trace from the same phase A but from two separate power heads? 800000- 700000- 40000- 300000- 200000- www 100000- 40000- -200000- start 033 000 S 0:04...
-
Given the following project network, baseline, and status information, develop status reports for periods 2, 4, 6, 8 and complete the performance indexes table. Calculate the EACf and the VACf. Based...
-
AHIMA has provided its members and students with ethical scenarios as a means to practice examining and resolving ethical issues. Two such scenarios have been taken from AHIMA's Ethics Case Studies -...
-
Spotlight Ltd has issued share capital of 60,000----8% redeemable cumulative preference shares of ~ 20 each and 4,00,000 equity shares of ~ 10 each. The preference shares are redeemable at a premium...
-
A pulley system with a lighter mass ( Mass 1 ) and a heavier mass ( Mass 2 ) when released Will accelerate. The mass of Mass 1 is 1 7 kg and Mass 2 is 3 0 kg . Determine the magnitude of the tension...
-
We are given that x=y=5, so x+2=7, y+1=6,8+y=13, 5+y=10 and so on, only need to solve question There is an investment project that requires an upfront capital investment of x + 2, which is...
-
Indigo Windows Inc. is in the process of setting a target price on its newly designed tinted window. Cost data relating to the window at a budgeted volume of 4,000 units are as follows. Per Unit...
-
6.10 If we integrate the Maxwell-Boltzmann distribution over from some momentum up, we are faced with error functions 00 2 erfc(y) = = 7/7 S, dr. d.x. Problems 87 [See Handbook of Mathematical...
-
Willingness to Pay for Insurance. Frank Black has finally quit playing guitar for the Pixies, and has decided to pursue a lifelong dream of his, generating power through small-scale electricity...
-
What is wrong with the following C++ code? (Either describe the mistakes or show how to correct them). #include iostream using namespace.std; ( integer main (): 1 integer x; integer y: integer z:...
-
Mona clothing company is one of the leading woolen and cotton cloth manufacturing company since 1999 the company provides a wide range of clothes in various parts and subparts of the country. The...
-
Refer to Example 9.15. Add the following functionality to this program: Allow the user to enter the cost of a gallon of gas on each trip and use a function, Cost() to calculate the cost of purchasing...
-
How can you improve your negotiating effectiveness?
-
If you were an employee in a matrix structure, what pluses do you think the structure would provide? What about minuses?
-
Define the general dependency postulate.
-
Isothermal compression efficiency can be achieved by running the compressor: (a) At a very high speed (b) At a very slow speed (c) At an average speed (d) At zero speed
-
Derive the expression of work done by the compressor in isothermal compression, adiabatic compression, and polytropic compression.
-
Maximum work is done in compressing air when the compression is: (a) Isothermal compression (b) Adiabatic compression (c) Polytropic compression (d) None of these
Study smarter with the SolutionInn App