Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this section you will need to take the code you generated from your design and run it on SQL developer to create all of

In this section you will need to take the code you generated from your design and run it on SQL developer to create all of your tables. You will then need to populate all of these tables with sample data. To each table you will need to add at least 5 sample rows of data. After doing so, you will need to write a single SQL statement for each of the given tasks below. In your report you will need to include all of your insert statements and all of the SQL statements you have written numbered correctly. You will also provide screenshots of the output from each query.
1. List drivers and the total number of rides they have completed.
2. Find the average rating of drivers who have completed more than 50 rides.
3. List the names of passengers who have used CityWheelsBH more than 20 times.
4. Identify drivers who have never received a rating below 4.
5. Find the total number of rides completed in each month of the current year.
6. Show drivers who have completed rides with at least three different passengers.
7. Determine the most popular destination among all rides.
8. Identify the most common issue reported in support tickets.
9. Show the total earnings for each driver in the current year.
10. Get a list of all promotions that are currently active and expire within the next 30 days.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+3. Does the source have the willingness to use this power?

Answered: 1 week ago