SQL Bug Hunt Easy +10 XP
Wrong Wildcard
This LIKE query finds no matches.
SQLFind the bug
1
SELECT * FROM products2
WHERE name LIKE 'Phone*'; The bug is on line 2
Select the correct fix
Show answer and explanation
Answer: Use % instead of *
SQL uses % as the wildcard character in LIKE, not *. 'Phone%' matches Phone, Phones, PhoneCase, etc.
Hint: SQL has its own wildcard character.
What this challenge tests
Bug Hunt in SQL: like, wildcards.