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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
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 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.

 
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
5004
5005
5006
5007
5008
5009
5010
TRAVEL_START_TIME
2019-10-01 04:04:55
2019-10-01 05:57:33
2019-10-01 13:35:20
2019-10-02 08:44:48
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:
2019-10-02 16:38:54
2019-10-03 19:12:14
2019-10-03 16:06:36
2019-10-03 17:17:12
2019-10-03 21:16:48
2019-10-03 23:21:40
CAR_PLATE
TRAVELS Table
BB-542-AB
BB-883-EE
BB-451-ZN
BB-189-MM
TRAVEL_END_TIME
2019-10-01 04:14:19
2019-10-01 06:12:33
2019-10-01 13:45:10
2019-10-02 09:15:28
2019-10-02 16:48:10
2019-10-03 19:23:45
2019-10-03 16:08:56
2019-10-03 17:37:42
2019-10-03 21:26:18
2019-10-03 23:39:10
TRAVEL_START_LOCATION
9614 York Road
47 Church Street
2 Windsor Road
9060 Mill Lane
2 Queensway
50 Main Road
39 Park Road
37 The Drive
77 Mill Road
CAR_MODEL
16 Church Road
TOYOTA PRIUS
TESLA MODEL 3
TOYOTA AURIS
MERCEDES E200
TRAVEL_END_LOCATION
84 Church Lane
68 High Street
95 West Street
27 Main Road
24 Mill Lane
93 Broadway
91 West Street
17 Stanley Road
724 Springfield Road
30 North Road
TRAVEL PRICE
15.44
20.56
12.32
30.49
11.15
14.61
4.41
25.12
13.55
25.62
DRIVER ID
2001
2001
2002
2003
2001
2003
2002
2001
2001
CAR_YEAR
2003
2018
2019
2019
2019
CAR ID
1003
1003
1001
1002
1003
1002
1004
1003
1003
1002
USER_ID
3005
3006
3002
3001
3007
3007
3003
3001
3005
3003
TRAVEL_DISCOUNT
NULL
NULL
NULL
0.13
NULL
0.10
0.14
0.25
NULL
0.20
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 5004 5005 5006 5007 5008 5009 5010 TRAVEL_START_TIME 2019-10-01 04:04:55 2019-10-01 05:57:33 2019-10-01 13:35:20 2019-10-02 08:44:48 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: 2019-10-02 16:38:54 2019-10-03 19:12:14 2019-10-03 16:06:36 2019-10-03 17:17:12 2019-10-03 21:16:48 2019-10-03 23:21:40 CAR_PLATE TRAVELS Table BB-542-AB BB-883-EE BB-451-ZN BB-189-MM TRAVEL_END_TIME 2019-10-01 04:14:19 2019-10-01 06:12:33 2019-10-01 13:45:10 2019-10-02 09:15:28 2019-10-02 16:48:10 2019-10-03 19:23:45 2019-10-03 16:08:56 2019-10-03 17:37:42 2019-10-03 21:26:18 2019-10-03 23:39:10 TRAVEL_START_LOCATION 9614 York Road 47 Church Street 2 Windsor Road 9060 Mill Lane 2 Queensway 50 Main Road 39 Park Road 37 The Drive 77 Mill Road CAR_MODEL 16 Church Road TOYOTA PRIUS TESLA MODEL 3 TOYOTA AURIS MERCEDES E200 TRAVEL_END_LOCATION 84 Church Lane 68 High Street 95 West Street 27 Main Road 24 Mill Lane 93 Broadway 91 West Street 17 Stanley Road 724 Springfield Road 30 North Road TRAVEL PRICE 15.44 20.56 12.32 30.49 11.15 14.61 4.41 25.12 13.55 25.62 DRIVER ID 2001 2001 2002 2003 2001 2003 2002 2001 2001 CAR_YEAR 2003 2018 2019 2019 2019 CAR ID 1003 1003 1001 1002 1003 1002 1004 1003 1003 1002 USER_ID 3005 3006 3002 3001 3007 3007 3003 3001 3005 3003 TRAVEL_DISCOUNT NULL NULL NULL 0.13 NULL 0.10 0.14 0.25 NULL 0.20
InstantRide is the new ride sharing application in the city and it has just started its operations.
With the help of the InstantRide 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
2001
2002
2003
2004
Willie
USER_FIRST_NAME
Justin
Anthony
Jack
Ryan
Ece
Nursin
Sarah
Bobby
Randy
Jose
Nursin
Butler
Howard
Walker
Yilmaz
In the DRIVERS table, all the drivers in the Instant Ride are stored with their name, driving license
number and check and rating information:
1874501
DRIVER_ID DRIVER_FIRST_NAME DRIVER_LAST_NAME DRIVER_DRIVING LICENSE_ID DRIVER_START_DATE DRIVER_DRIVING LICENSE_CHECKED DRIVER_RATING
1953853
USER_LAST_NAME
1735487
Hill
1734747
Collins
Yilmaz
Price
Griffin
Clark
Thomas
Yilmaz
2019-09-12
2019-09-09
2019-09-15
2019-08-15
1
1
USER_EMAIL
1
j.hill@xmail.com
1
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
4.4
4.8
3.5
0
Transcribed Image Text:InstantRide is the new ride sharing application in the city and it has just started its operations. With the help of the InstantRide 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 2001 2002 2003 2004 Willie USER_FIRST_NAME Justin Anthony Jack Ryan Ece Nursin Sarah Bobby Randy Jose Nursin Butler Howard Walker Yilmaz In the DRIVERS table, all the drivers in the Instant Ride are stored with their name, driving license number and check and rating information: 1874501 DRIVER_ID DRIVER_FIRST_NAME DRIVER_LAST_NAME DRIVER_DRIVING LICENSE_ID DRIVER_START_DATE DRIVER_DRIVING LICENSE_CHECKED DRIVER_RATING 1953853 USER_LAST_NAME 1735487 Hill 1734747 Collins Yilmaz Price Griffin Clark Thomas Yilmaz 2019-09-12 2019-09-09 2019-09-15 2019-08-15 1 1 USER_EMAIL 1 j.hill@xmail.com 1 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 4.4 4.8 3.5 0
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY