runtime
17 / 88

task LIKE · easy

Find the lamps

Return the id and name of catalog items whose name contains “lamp” anywhere, in any letter case.

what to return

Columns
idname in this order
Rows
2 rows · any order
Watch for
“Desk Lamp” and “Floor lamp” both count.
Skill
Search text with LIKE and wildcards. Refresher: Lists & text patterns →

expected result

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

expected result2 rows · any order
idname
1Desk Lamp
2Floor lamp

all 2 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.