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 11:

Find EMILY DEE fans

MySQL
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.
Expected result Columns: 4 · Rows: 3
first_name last_name film_count films

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.