As a part of marketing strategy, the Marketing team continuously conducting an advertising campaign on different channels. The team would like to know how this campaign is impacting the overall rides being taken through the InstantRide, specifically the rides which cost $5 or more. You need to send the number of travels calculated for each day and month with their totals using Month, Day and Count column names. Furthermore, you can name your subquery as PREMIUM_RIDES to work only with the travels with the price of 5 or highe

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

As a part of marketing strategy, the Marketing team continuously conducting an advertising campaign on different channels. The team would like to know how this campaign is impacting the overall rides being taken through the InstantRide, specifically the rides which cost $5 or more.

You need to send the number of travels calculated for each day and month with their totals using MonthDay and Count column names. Furthermore, you can name your subquery as PREMIUM_RIDES to work only with the travels with the price of 5 or higher.

In the **USERS** table, information for the users is stored with their first name, last name, and email:

| USER_ID | USER_FIRST_NAME | USER_LAST_NAME | USER_EMAIL           |
|---------|-----------------|----------------|----------------------|
| 3001    | Jack            | Hill           | j.hill@email.com     |
| 3002    | Ryan            | Collins        | r.collins@email.com  |
| 3003    | Nursin          | Yilmaz         | n.atak@gmail.com     |
| 3004    | Sarah           | Price          | s.price@email.com    |
| 3005    | Bobby           | Griffin        | b.griffin@email.com  |
| 3006    | Randy           | Clark          | r.clark@email.com    |
| 3007    | Jose            | Thomas         | j.thomas@email.com   |
| 3008    | Nursin          | Yilmaz         | n.yilmaz@email.com   |

**USERS Table**

In the **DRIVERS** table, all the drivers in the InstantRide are stored with their name, driving license number, and check and rating information:

| DRIVER_ID | DRIVER_FIRST_NAME | DRIVER_LAST_NAME | DRIVER_DRIVING_LICENSE_ID | DRIVER_START_DATE | DRIVER_DRIVING_LICENSE_CHECKED | DRIVER_RATING |
|-----------|-------------------|------------------|---------------------------|-------------------|-------------------------------|---------------|
| 2001      | Willie            | Butler           | 1874501                   | 2019-09-12        | 1                             | 4.4           |
| 2002      | Justin            | Howard           | 1953835                   | 2019-09-09        | 1                             | 4.8           |
| 2003      | Anthony           | Walker           | 1735487                   | 2019-09-15        | 1                             | 3.5           |
| 2004      | Ece               | Yilmaz           | 1734747                   | 2019-08-15        | 1                             | 0             |

**DRIVERS Table**

In the **CARS** table, all the cars in the InstantRide system are kept with the license plate, model, and year:

| CAR_ID | CAR_PLATE | CAR_MODEL     | CAR_YEAR |
|--------
Transcribed Image Text:In the **USERS** table, information for the users is stored with their first name, last name, and email: | USER_ID | USER_FIRST_NAME | USER_LAST_NAME | USER_EMAIL | |---------|-----------------|----------------|----------------------| | 3001 | Jack | Hill | j.hill@email.com | | 3002 | Ryan | Collins | r.collins@email.com | | 3003 | Nursin | Yilmaz | n.atak@gmail.com | | 3004 | Sarah | Price | s.price@email.com | | 3005 | Bobby | Griffin | b.griffin@email.com | | 3006 | Randy | Clark | r.clark@email.com | | 3007 | Jose | Thomas | j.thomas@email.com | | 3008 | Nursin | Yilmaz | n.yilmaz@email.com | **USERS Table** In the **DRIVERS** table, all the drivers in the InstantRide are stored with their name, driving license number, and check and rating information: | DRIVER_ID | DRIVER_FIRST_NAME | DRIVER_LAST_NAME | DRIVER_DRIVING_LICENSE_ID | DRIVER_START_DATE | DRIVER_DRIVING_LICENSE_CHECKED | DRIVER_RATING | |-----------|-------------------|------------------|---------------------------|-------------------|-------------------------------|---------------| | 2001 | Willie | Butler | 1874501 | 2019-09-12 | 1 | 4.4 | | 2002 | Justin | Howard | 1953835 | 2019-09-09 | 1 | 4.8 | | 2003 | Anthony | Walker | 1735487 | 2019-09-15 | 1 | 3.5 | | 2004 | Ece | Yilmaz | 1734747 | 2019-08-15 | 1 | 0 | **DRIVERS Table** In the **CARS** table, all the cars in the InstantRide system are kept with the license plate, model, and year: | CAR_ID | CAR_PLATE | CAR_MODEL | CAR_YEAR | |--------
**TRAVELS Table**

The table provides detailed information on various travel records. It includes the following columns:

- **TRAVEL_ID**: Unique identifier for each travel record.
- **TRAVEL_START_TIME**: The date and time when the travel started.
- **TRAVEL_END_TIME**: The date and time when the travel ended.
- **TRAVEL_START_LOCATION**: The address or location where the travel began.
- **TRAVEL_END_LOCATION**: The address or location where the travel ended.
- **TRAVEL_PRICE**: The cost associated with the travel.
- **DRIVER_ID**: The unique identifier for the driver.
- **CAR_ID**: The unique identifier for the car used in the travel.
- **USER_ID**: The unique identifier for the user who booked the travel.
- **TRAVEL_DISCOUNT**: Any discount applied to the travel price.

**Records**:
- Each row corresponds to a specific travel instance, captured between specific start and end locations, with a defined price and occasionally a discount.
- **Example**: Travel ID 5004 started on 2019-10-02 at 08:44:48 and ended at 09:51:28. The travel began at 9606 Mill Lane and ended at 27 Main Road with a price of 30.49 units and a discount of 0.13 applied.

This table is instrumental for tracking travel histories, costs, and user interactions in a transportation service context.
Transcribed Image Text:**TRAVELS Table** The table provides detailed information on various travel records. It includes the following columns: - **TRAVEL_ID**: Unique identifier for each travel record. - **TRAVEL_START_TIME**: The date and time when the travel started. - **TRAVEL_END_TIME**: The date and time when the travel ended. - **TRAVEL_START_LOCATION**: The address or location where the travel began. - **TRAVEL_END_LOCATION**: The address or location where the travel ended. - **TRAVEL_PRICE**: The cost associated with the travel. - **DRIVER_ID**: The unique identifier for the driver. - **CAR_ID**: The unique identifier for the car used in the travel. - **USER_ID**: The unique identifier for the user who booked the travel. - **TRAVEL_DISCOUNT**: Any discount applied to the travel price. **Records**: - Each row corresponds to a specific travel instance, captured between specific start and end locations, with a defined price and occasionally a discount. - **Example**: Travel ID 5004 started on 2019-10-02 at 08:44:48 and ended at 09:51:28. The travel began at 9606 Mill Lane and ended at 27 Main Road with a price of 30.49 units and a discount of 0.13 applied. This table is instrumental for tracking travel histories, costs, and user interactions in a transportation service context.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
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