Keep SQLtest alive: Help cover this month's $100 server costs to keep all lessons and the SQL playground online. Support the project →
SQL code copied to buffer
Task 115:

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.

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.