🎯 Few days left this month Support SQLTest.online and help us keep SQL practice free for everyone. Donate today →
SQL code copied to buffer
Task 10:

Repeat Rentals

MySQL
Find the customers who have rented the same film more when one time. Present the result as table with next columns: first_name, last_name - client's name and surname, title - film's title, first_rental_date, last_rental_date - the film first and last rental dates rentals_count - how many times the film was rented by client.
Sort the table by movie title, then by customer's first and last name.
Expected result Columns: 6 · Rows: 212
first_name last_name title first_rental_date last_rental_date rentals_count

Sample rows open after wrong checks: 0 of 3

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

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