Find the String Literal Mistake
Find the Mistake Easy
Question
This query has an error. Find and fix it:
Code
SELECT * FROM users WHERE name = Ada;
Hint
String literals need to be quoted.
Explanation
The string value Ada is not quoted. Without quotes, the database interprets it as a column name, not a string literal. Fix: WHERE name = 'Ada' — use single quotes for string values.
Related Resources
Related Lessons
- WHERE Clause
Learn string literals.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.