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

Highest Replacement Cost Disks

MySQL
In case of loss, theft, damage or non-return of the rented disk, the client will be charged a replacement cost (replacement_cost). Find the movies with the highest replacement cost in the database using a window function and common table expression (CTE). 
Write a query that returns the film_id, title and replacement_cost fields in ascending order of film_id field.
Expected result Columns: 3 · Rows: 53
film_id title replacement_cost

Sample rows open after wrong checks: 0 of 2

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.