90. Case-Insensitive Product Search
EasyString ManipulationlowerLIKE
A search box should match regardless of capitalisation. Lower-casing both the column and the search term makes the comparison case-insensitive in a portable way.
Task: return id and name for every product whose name contains the word pro in any casing. Use lower(name) LIKE '%pro%'. Order by id.
Output columns, in order: id, name.
Tables
Loading schema…
Expected outputrows must come back in this order
Computing expected output…
This is the result for the example data above. On Submit your query is graded against this example plus 4 hidden edge cases — 5test cases in all. A sloppy query that only fits the example won't pass.
SQL· SQLite · runs in your browser
⌘/Ctrl+↵ run · ⇧⌘/Ctrl+↵ submit
Run a query to see its output here.