Question: Task 1 : The InstantRide Driver Relationship team wants the details of the drivers and the number of cars they use. Calculate the count of
Task :
The InstantRide Driver Relationship team wants the details of the drivers and the number of cars they use. Calculate the count of the CARID field in the TRAVELS table and return a table grouped by DRIVERID and in descending order by the calculated COUNT column, displayed as CARS
Task : Calculate the number of cars each driver uses.
Test Feedback:
Status: FAILED!
Check:
Test: Calculate the number of cars each driver uses
Reason: The following error is preventing tests from completing: S: Table 'InstantRide.TRAVELS' doesn't exist
Error : ProgrammingError S: Table 'InstantRide.TRAVELS' doesn't exist
Timestamp: ::
Task :
The InstantRide Driver Relationship team requires the detail of the drivers who has used more than one car for rides more than twice. Send them the DRIVERID with the calculated COUNT of used cars, displayed as CARS in decreasing order.
Task : Query the drivers that have used more than one car more than once.
Task :
The InstantRide Marketing team is planning to create a heatmap of the start locations of the travels in InstantRide. The team requires the DISTINCT TRAVELSTARTLOCATION values for all travels in the system.
Task : Query all the distinct start locations.
Task :
The InstantRide User Satisfaction team requires the average and maximum number of rides users have taken so far with InstantRide. In addition, they would like to know the total number of travels. However, they need these details with the corresponding column names Average, Maximum and Total by using the AVG, MAX and SUM functions. In order to accomplish this, you will first need to create a derived table from the TRAVELS table to pass the TRAVELID count to the three mathematical functions.
Task : Query the average, maximum, and total number of rides users have taken.
Task :
The InstantRide Driver Relationship team wants to learn how many travels each driver has done in the month of October. You need to send them the DRIVERID and two calculated columns: DAY and RIDES.The DAY column is calculated using the DAY function with the TRAVELSTARTTIME as the argument. The RIDES column is calculated by using the COUNT function to determine the number of rides given for each day. Filter the results with the MONTH function.
Task : Query all travels given by drivers in the month of October.
Task :
The InstantRide User Satisfaction team received a phone call from a user who might have left her wallet in the car. She indicated that the license plate of the car was starting with BB but unfortunately, she could not remember the full license plate number. The team wants to get all travel information for the cars with the license plate starting with BB You need to return all travel data from the TRAVELS table for the CARID which has a plate number compared with SUBSTR and UPPER functions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
