SELECT All
Predict Output Beginner
Question
What does this SQL produce?
Code
-- users: id=1 name="Ada", id=2 name="Bob"
SELECT name FROM users;
Hint
SELECT name returns the name column for all rows.
Explanation
SELECT name FROM users returns the name column for every row in the users table. With 2 rows (Ada, Bob), the result is 2 rows: Ada and Bob.
Related Resources
Related Lessons
- SELECT
Learn SELECT.
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.