❤️ Thank you to everyone who supported the project! Last month you donated almost $100 — this keeps the service running free for everyone this month. I hope to count on your support for next month too. Support now →
SQL code copied to buffer
RU PT FR
Task 51:

Find the top spending customers

Write an SQL query to find the top three customers with the highest total payment volume in the Sakila database. Display in result table the first name, last name and total payment amount of clients in the first_name, last_name and total_pay columns respectively. Sort the results by total_pay in descending order.

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.