runtime
05 / 88

task LIMIT · warm-up

The three cheapest items

Return the name and price of the 3 cheapest catalog items, cheapest first.

what to return

Columns
nameprice in this order
Rows
3 rows · in the order asked
Watch for
Break price ties by name A→Z.
Skill
Combine ORDER BY with LIMIT. Refresher: Sort & limit →

expected result

Your query should return exactly these columns and values. Run it and compare.

expected result3 rows · in this order
nameprice
Notebook Set12
Seed Starter Kit15
String Lights19.5

all 3 rows

data you can query

Sample rows from each table. Each column shows its type underneath; → marks a link to another table.

catalog_items4 columns · 13 rows
idinteger · keynametextcategorytextpricereal
1Desk LampLighting39
2Floor lampLighting89
3String LightsLighting19.5
4Chef KnifeKitchen59
5Cast Iron PanKitchen45

showing 5 of 13 rows

solution.sql
 

Hints and the answer are always available. Using them counts the question as solved with help.