Scenario and Database Model: InstantRide 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. I need help with task 4 and task 5.
Scenario and Database Model: InstantRide 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. I need help with task 4 and task 5.
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...
Related questions
Question
Scenario and Database Model: InstantRide
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.
I need help with task 4 and task 5.

Transcribed Image Text:Module 8 Activity 1
Instructions Page 4 of 4
Task2.sql | Task3.sql| Task4.sql
+
Task1.sql
Task5.sql
Task6.sql
1 ALTER TABLE ACTIVE_DRIVERS
2 ADD CONTRAINT DuplicateCheck (DRIVER_FIRST_NAME, DRIVER_LAST_NAME
DRIVER_DRIVING_LICENSE_ID);
Task 5:
3
The Driver Relationship team requested to ensure that
</>
there will be no duplicates in the active drivers tables in
terms of first name, last name and driving license ID. You
need to create a constraint in the ACTIVE_DRIVERS
table, called DuplicateCheck, to ensure the first name,
last name, and the driving license ID are unique.
Task
Create a constraint on the ACTIVE_DRIVERS
9 SQL Viewer
+
table
Task 6:
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax;
check the manual that corresponds to your MYSQL server version for the
right syntax to use near 'DuplicateCheck (DRIVER_FIRST_NAME,
DRIVER LAST_NAME, DRIVER DRIVING_LICENSE_ID)' at line 2
The Car Maintenance team considered that the available
maintenance tasks should also have the price information
in the database. Alter the MAINTENANCE_TYPES table to
include a new column named MALINTENANCE PRICE of
4/4
InstantRide

Transcribed Image Text:Module 8 Activity 1
Instructions Page 3 of 4
Task1.sql
Task2.sql
Task3.sql
Task4.sql
Task5.sql
Task6.sql
1 CREATE INDEX NameSearch
Task 4:
2 ON ACTIVE_DRIVERS (DRIVER_FIRST_NAME, DRIVER_LAST_NAME, DRIVER_DRIVING_LICENSE_ID);|
The Driver Relationship team wants to have quick search options for the
active drivers. The team specifically mentioned that they are using first
</>
name, last name and driving license ID to search the drivers. Create an
index called NameSearch on the ACTIVE_DRIVERS table created in task
3.
Task
Create an INDEX to search for driver information.
0.00
out of
10.00
SQL Viewer
O out of 1 checks passed. Review the results below for more
details.
Checks
Query completed
SQL Database Test • Incomplete
Create an INDEX to search the ACTIVE_DRIVERS table
3/4
<>
InstantRide
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

Recommended textbooks for you

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

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 Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

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
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY