Services Work Learn About Contact
0/9
Lesson 2 of 9

SELECT Basics

SELECT is the most common SQL command. It retrieves data from a table. Use * to get all columns, or list specific column names. Always end SQL statements with a semicolon.

SQL
-- Get all columns and rows
SELECT * FROM users;

-- Get specific columns only
SELECT name, email FROM users;

-- Get unique values only
SELECT DISTINCT country FROM users;
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed SQL!

You finished all 9 lessons and quizzes. You now know the basics of SQL.