Support the project! The site exists thanks to the community. If the help covers the expenses - the platform remains free.Support →
SQL code copied to buffer
Task

Find EMILY DEE fans

Find clients who have watched the most films featuring EMILY DEE.
As a result, display a table with columns 
- first_name, last_name - client's first and last name, 
- film_count - the number of films with EMILY DEE's rented, 
- films - a comma separated list of the names of these films. 

Sort the list by customer last name.
Use the RANK function in your solution.

Use MySQL 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.