Coding task · SQL and MySQL course · Module 2: Querying data (SELECT)

Three most expensive books

Combine sorting with a limit on the number of results to build a ranking.

Task

Write a query that retrieves tytul and cena from the ksiazki table, sorts in descending order by price and shows only the 3 most expensive books.