The InstantRide Management team founded a new team for car maintenance. The new team is responsible for the small maintenance operations for the cars in the InstantRide system. The main idea is to take actions faster and minimize the time spent for the maintenance. Therefore, the Car Maintenance team wants to store MAINTENANCE_TYPE_ID (char(5)) and a MAINTENANCE_TYPE_DESCRIPTION (varchar(30)) in the database. Using MAINTENANCE_TYPE_ID as the PRIMARY KEY, create a new table, MAINTENANCE_TYPES, and send the table description with the column names and types to the Car Maintenance team. Create a new table to store car maintenance types.
The InstantRide Management team founded a new team for car maintenance. The new team is responsible for the small maintenance operations for the cars in the InstantRide system. The main idea is to take actions faster and minimize the time spent for the maintenance. Therefore, the Car Maintenance team wants to store MAINTENANCE_TYPE_ID (char(5)) and a MAINTENANCE_TYPE_DESCRIPTION (varchar(30)) in the database. Using MAINTENANCE_TYPE_ID as the PRIMARY KEY, create a new table, MAINTENANCE_TYPES, and send the table description with the column names and types to the Car Maintenance team. Create a new table to store car maintenance types.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
The InstantRide Management team founded a new team for car maintenance. The new team is responsible for the small maintenance operations for the cars in the InstantRide system. The main idea is to take actions faster and minimize the time spent for the maintenance. Therefore, the Car Maintenance team wants to store MAINTENANCE_TYPE_ID (char(5)) and a MAINTENANCE_TYPE_DESCRIPTION (varchar(30)) in the
Create a new table to store car maintenance types.

Transcribed Image Text:Scenario and Database Model: Instant Ride
InstantRide is the new ride sharing application in the city and it has just started its operations.
With the help of the Instant Ride mobile application, the users request a ride with their location.
Drivers and cars are assigned to the request; and then the driver picks up the user to ride their
requested location. Information for the users, drivers and cars are stored in the database as well as
the travel transactions.
In the USERS table, information for the users are stored with their first name, last name and email:
USER_ID
3001
3002
3003
3004
3005
3006
3007
3008
USERS Table
2002
2003
USER_FIRST_NAME
2004
Jack
Ryan
Nursin
Sarah
Bobby
Randy
Jose
DRIVERS Table
Nursin
Butler
Howard
Walker
Yilmaz
USER_LAST_NAME
In the DRIVERS table, all the drivers in the Instant Ride are stored with their name, driving license
number and check and rating information:
1735487
Hill
DRIVER ID DRIVER FIRST NAME DRIVER LAST NAME DRIVER DRIVING LICENSE ID DRIVER START DATE DRIVER DRIVING LICENSE CHECKED DRIVER RATING
2001
Willie
1874501
2019-09-12
4.4
Justin
1953853
2019-09-09
Anthony
Ece
1734747
Collins
Yilmaz
Price
Griffin
Clark
Thomas
Yilmaz
2019-09-15
2019-08-15
USER_EMAIL
j.hill@xmail.com
r.collins@xmail.com
n.atak@gmail.com
s.price@xmail.com
b.griffin@xmail.com
r.clark@xmail.com
j.thomas@xmail.com
n.yilmaz@xmail.com
1
1
4.8
3.5
0

Transcribed Image Text:In the CARS table, all the cars in the InstantRide system are kept with the license plate, model
and year:
CAR ID
1001
1002
1003
1004
CARS Table
TRAVEL ID
5001
5002
5003
5015
5006
5007
5008
5009
5010
TRAVEL START TIME
2016-10-01 00:04:55
2015-10-01 05:57:35
2015-10-01 13:36:20
2015-10-02 04
2015-10-02 1
2015-10-03 19:12:14
2015-10-03 16:06:36
2015-10-03 17:17:12
2015-10-05 21:16:48
2015-10-03 23:21:40
CAR PLATE
TRAVELS Table
BB-542-AB
BB-883-FE
BB-451-ZN
BB-189-MM
Finally, the transactions of the rides are stored in the TRAVELS table. For each travel, start and
end time with location are stored. In addition, the involved driver, car and user are listed for each
drive. Price and discount information are also available in the database:
TRAVEL END TIME
2019-13.41 04:14:19
2015-10-01 06:12:35
2019-10-01 13:45:10
2013-13-4791:15:28
2019-10-43 16:10
2015-10-01 13:21:15
2019-10-03 16:38:56
2019-10-03 17:37:42
2019-10-03 21:26:18
2019-10-03 23:39:10
TRAVEL START LOCATION
0514York Road
47 Church Street
>Wea
3050 Millane
CAR MODEL
50 Main Road
39 Pa Road
37 The Drive
77 Mill Road
16 Church Road
TOYOTA PRIUS
TESLA MODEL 3
TOYOTA AURIS
MERCEDES E200
TRAVEL END LOCATION
58 High Street
95 W
77 Man
24M10
91 West S
17 Stanley Road
725 Springfield Road
30 North Road
TRAVEL PRICE
15.44
20.56
13.32
10.49
14,81
4.41
25.12
13.55
25.62
CAR YEAR
2018
2019
2019
2019
2002
2001
2001
2003
DRIVER ID CAR ID
2001
2001
2007
2005
2001
2005
1008
1002
1004
1003
1002
USER ID
1006
3006
3002
3007
1007
3001
3003
TRAVEL DISCOUNT
NULL
NULL
MEL
0.10
0.14
0.25
MAL
0.20
You are assigned as the database administrator to collect and manage transactional data of the
InstantRide operations. Your main task is to create SQL scripts to help other teams to retrieve the
requested data. In the following activities, you will create the scripts, run against the database and
send the result to the corresponding teams.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education