New month, new goals. Your help keeps the project moving forward. 🖥️ Support sqltest →
SQL code copied to buffer
Task 80:

Clients with a high number of rentals

MySQL
Create an SQL query to find customers who have rented more movies than the average number of rentals among all customers. Use a subquery to calculate the average number of rentals.
The resulting table should contain the following columns: customer_id - unique customer identifier, first_name - customer name, last_name - client’s last name.
rental_count - number of films rented.
Expected result Columns: 4 · Rows: 296
customer_id first_name last_name rental_count

Sample rows open after wrong checks: 0 of 2

Write your query below and click "Check it!". Tables are described in the right pane.

The query result will appear here. Ctrl+Enter - Run query

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.