You need to run SELECT query and return all travel data from TRAVELS table filtered by the drivers who has lower rating than 4 in the DRIVERS table.

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
icon
Related questions
Question

The InstantRide Driver Relationship team wants to analyze the travel information of the low rated drivers. You will need to provide them with all the travel information of the drivers with the average rating lower than 4. The team wants to get in touch with the travelers and analyze their feedback. You need to run SELECT query and return all travel data from TRAVELS table filtered by the drivers who has lower rating than 4 in the DRIVERS table.

The table presents data about various travel records. Each row contains details of a specific trip, organized under the following columns:

1. **TRAVEL_ID**: A unique identifier for each travel record.
2. **TRAVEL_START_TIME**: The date and time when the trip started, formatted as YYYY-MM-DD HH:MM:SS.
3. **TRAVEL_END_TIME**: The date and time when the trip ended, formatted similarly.
4. **TRAVEL_START_LOCATION**: The address or location where the trip began.
5. **TRAVEL_END_LOCATION**: The address or location where the trip ended.
6. **TRAVEL_PRICE**: The cost of the trip in currency units.
7. **DRIVER_ID**: A unique identifier for the driver assigned to the trip.
8. **CAR_ID**: A unique identifier for the car used in the trip.
9. **USER_ID**: A unique identifier for the user who booked the trip.
10. **TRAVEL_DISCOUNT**: Any discount applied to the travel price, where available; otherwise marked as NULL.

For instance, travel ID 5004 started on 2019-10-02 at 08:44:28 and ended at 09:15:28, starting from 9060 Mill Lane and ending at 27 Main Road, with a travel price of 30.49. This trip was driven by the driver with ID 2003, using car ID 1002, and was booked by user ID 3001, with a discount of 0.13 applied. 

No graphs or diagrams are present in this table.
Transcribed Image Text:The table presents data about various travel records. Each row contains details of a specific trip, organized under the following columns: 1. **TRAVEL_ID**: A unique identifier for each travel record. 2. **TRAVEL_START_TIME**: The date and time when the trip started, formatted as YYYY-MM-DD HH:MM:SS. 3. **TRAVEL_END_TIME**: The date and time when the trip ended, formatted similarly. 4. **TRAVEL_START_LOCATION**: The address or location where the trip began. 5. **TRAVEL_END_LOCATION**: The address or location where the trip ended. 6. **TRAVEL_PRICE**: The cost of the trip in currency units. 7. **DRIVER_ID**: A unique identifier for the driver assigned to the trip. 8. **CAR_ID**: A unique identifier for the car used in the trip. 9. **USER_ID**: A unique identifier for the user who booked the trip. 10. **TRAVEL_DISCOUNT**: Any discount applied to the travel price, where available; otherwise marked as NULL. For instance, travel ID 5004 started on 2019-10-02 at 08:44:28 and ended at 09:15:28, starting from 9060 Mill Lane and ending at 27 Main Road, with a travel price of 30.49. This trip was driven by the driver with ID 2003, using car ID 1002, and was booked by user ID 3001, with a discount of 0.13 applied. No graphs or diagrams are present in this table.
This table provides detailed information about drivers, including their identification details, license information, and ratings. Here is a breakdown of the data:

1. **Driver ID**: A unique identifier for each driver.
   - **2001**
   - **2002**
   - **2003**
   - **2004**

2. **Driver First Name**: The first name of the driver.
   - Willie
   - Justin
   - Anthony
   - Ece

3. **Driver Last Name**: The last name of the driver.
   - Butler
   - Howard
   - Walker
   - Yilmaz

4. **Driver Driving License ID**: The identification number for each driver’s driving license.
   - 1874501
   - 1953853
   - 1735487
   - 1734747

5. **Driver Start Date**: The date when the driver started.
   - 2019-09-12
   - 2019-09-09
   - 2019-09-15
   - 2019-08-15

6. **Driver Driving License Checked**: Indicates whether the driver’s license has been verified (1 means checked).
   - All entries show a value of 1, indicating that all licenses have been checked.

7. **Driver Rating**: The rating assigned to the driver based on performance or feedback.
   - 4.4 for Willie Butler
   - 4.8 for Justin Howard
   - 3.5 for Anthony Walker
   - 0 for Ece Yilmaz

This structured data is useful for analyzing driver credentials and performance history.
Transcribed Image Text:This table provides detailed information about drivers, including their identification details, license information, and ratings. Here is a breakdown of the data: 1. **Driver ID**: A unique identifier for each driver. - **2001** - **2002** - **2003** - **2004** 2. **Driver First Name**: The first name of the driver. - Willie - Justin - Anthony - Ece 3. **Driver Last Name**: The last name of the driver. - Butler - Howard - Walker - Yilmaz 4. **Driver Driving License ID**: The identification number for each driver’s driving license. - 1874501 - 1953853 - 1735487 - 1734747 5. **Driver Start Date**: The date when the driver started. - 2019-09-12 - 2019-09-09 - 2019-09-15 - 2019-08-15 6. **Driver Driving License Checked**: Indicates whether the driver’s license has been verified (1 means checked). - All entries show a value of 1, indicating that all licenses have been checked. 7. **Driver Rating**: The rating assigned to the driver based on performance or feedback. - 4.4 for Willie Butler - 4.8 for Justin Howard - 3.5 for Anthony Walker - 0 for Ece Yilmaz This structured data is useful for analyzing driver credentials and performance history.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Elements of Tables
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education