2) (20 marks) The service organization needs to know what repairs need to be performed on...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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, c. if the car has been driven 8,000 km since last maintenance, it requires maintenance, d. if alignment is off by more than 5% - maintenance is required. e. 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: 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. 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, c. if the car has been driven 8,000 km since last maintenance, it requires maintenance, d. if alignment is off by more than 5% - maintenance is required. e. 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: 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:
Related Book For
Modern Database Management
ISBN: 978-0133544619
12th edition
Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi
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...
-
In Problems 4164, graph each function using the techniques of shifting, compressing, stretching, and/or reflecting. Start with the graph of the basic function (for example, y = x 2 ) and show all the...
-
A standard deck of cards contains 13 spades, 13 hearts, 13 diamonds, and 13 clubs. A bridge hand contains 13 cards selected at random from the 52-card deck. Find the probability that a hand contains...
-
Disk A has a mass of 8 kg and an initial angular velocity of 480 rpm clockwise; disk B has a mass of 4 kg and is initially at rest. The disks are brought together by applying a horizontal force of...
-
Reproduce Figure 2.4 using geom_histogram(aes(y = ..density..)) as shown below for Example 2.5. ggplot_build() extracts the computed values for the histogram. Use the extracted vales to confirm that...
-
Calculate financial leverage measures. The following information was available for the year ended December 31, 2013: Earnings before interest and taxes (operating income) ....... $60,000 Interest...
-
What would be your annualized Discount Rate (in %) and your annualized Investment Return (%) on the purchase of a 91 day U.S. T. Bill for $4,975.00 that has a Par Value of $5,000.00?
-
Suppose there is a credit market imperfection due to limited commitment. As in the setup with collateralizable wealth we examined in this chapter, each consumer has a component of wealth which has...
-
You have been consulted as an external auditor to state whether you agree or disagree with the financial reporting practice employed, and briefly explain the reason for your answer. 1. Bangalor...
-
How strong must an electric field in a metal be in order for electrons in the field to have a drift speed of \(10 \mathrm{~mm} / \mathrm{s}\) if the time interval between electron-ion collisions is...
-
Air enters a pipe $(f=0.02)$ of diameter $0.05 \mathrm{~m}$ with stagnation pressure and temperature equal to $1 \mathrm{MPa}$ and $300 \mathrm{~K}$, respectively. The pipe exhausts into the ambient...
-
A copper wire that is \(600 \mathrm{~mm}\) long and has a radius of \(1.0 \mathrm{~mm}\) is connected to the terminals of a \(9.0-\mathrm{V}\) battery. What is the current through the wire...
-
Air enters a $3 \mathrm{~m}$ long pipe $(f=0.02)$ of diameter $0.025 \mathrm{~m}$ at a stagnation temperature of $300 \mathrm{~K}$. If the static pressure of the air at the exit of the pipe is $100...
-
You want to use a length of insulated rigid metal rod to discharge the plates of a parallel-plate capacitor without allowing the electric field in the rod to exceed 1000 N/C. The area \(A\) of each...
-
BLG is a limited liability Company taxed as a partnership and has four shareholders each owning 25% of the outstanding Interests (Shares). The shareholders outside basis in their respective Interests...
-
Describe the Operations (+,,*,/) that can cause negligible addition (NA), error magnification (EM), or subtractive cancellation (SC) in calculating ?((x^2)+1) - x . Give the range of where they might...
-
Briefly describe four components of a disaster recovery plan.
-
Create an E-R diagram for FAME based on the enterprise data model you developed in 1-52. Clearly state any assumptions you made in developing the diagram.
-
Match the following terms to the appropriate definition: _________ Equijoina. Undoes changes to a table _________ Natural join..b. user-define data type _________ Outer join.c. SQL.: 1999 extension...
-
Describe a job in which you think an employee recognition program might be an effective means for changing and improving employee behaviour. Explain how you would design the program and how you would...
-
Describe a situation in which you think an employer could use organizational behaviour modification and an employee recognition program to improve or correct employee behaviour. Can you anticipate...
-
A supervisor in a textile factory observes that one of her employees is violating a safety rule that could result in severe injury. What combination of reinforcement, punishment, and extinction could...
Study smarter with the SolutionInn App