A · Query · beginner · Week 1 · Chapter 2 of 12
SELECT basics — reading rows
Every query starts with SELECT. Name columns explicitly in production. DISTINCT removes duplicates. Aliases rename columns or tables.
Path progress11%
Step 1 of 3
Basic SELECT
SELECT col1, col2 FROM table. Avoid SELECT * in production — it hides schema changes and fetches unnecessary data.
Example
SELECT id, name, email
FROM users;Do this now
SQLBolt lesson 1. Save query as queries/01_select.sql.
Was this step clear?
Chapter learning outcomes
- SELECT columns
- DISTINCT
- Column aliases
- FROM and table names
Clear these before you leave
Side quest
Column audit
For each table: list columns, types, and one sample value.