All exercises

Top-N with ORDER BY + LIMIT

CoreSQL

Runs entirely in your browser — your code never leaves your machine.

Problem

The products table has columns: id, name, price. Return the name and price of the 3 most expensive products, most expensive FIRST. Here the row order is part of the answer.

Related cheat sheet
Your code
Press Run tests to check your solution.