SQL code copied to buffer
RU PT FR
Task 1:

Find most active customers

Find clients occupying the top three places by the number of films rented.

Please note: several clients may have the same number of films rented.

Display a table with columns: last_name, first_name, cnt (the number taken in film rental). Sort the results by the number of movies you rented in descending order, and then by last name.

Use MariaDB syntax to write your answer. Descriptions of tables are provided in the right pane.

Write your request in the field below and click the "Check it!" button.
Get hint
Copy code Clear editor

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

Privacy & Cookie Policy.