🎯 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 6:

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.

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