← Back
REVIEW 1
SQL (Core) - SQL Review: Simple SELECT Queries
Prereq: None | Progress: 0%
Course Syllabus
Lesson 0 📖 What is SQL? Lesson 1 📖 SELECT queries 101 Lesson 2 📖 Queries with constraints (Pt. 1) Lesson 3 📖 Queries with constraints (Pt. 2) Lesson 4 📖 Filtering & sorting results Review 1 📖 Simple SELECT Queries Lesson 6 📖 Multi-table queries with JOINs Lesson 7 📖 OUTER JOINs Lesson 8 📖 A short note on NULLs Lesson 9 📖 Queries with expressions Lesson 10 📖 Queries with aggregates (Pt. 1) Lesson 11 📖 Queries with aggregates (Pt. 2) Lesson 12 📖 Order of execution of a Query Lesson 13 📖 Inserting rows Lesson 14 📖 Updating rows Lesson 15 📖 Deleting rows Lesson 16 📖 Creating tables Lesson 17 📖 Altering tables Lesson 18 📖 Dropping tables Lesson 19 📖 Subqueries & Nested Queries Lesson 20 📖 Set Operations Summary 🎓 Course Completion
SQL Review: Simple SELECT Queries
Put your SELECT, WHERE, ORDER BY, and LIMIT skills to work on a real-world dataset: north_american_cities.
Complete Query Template
SELECT column, another_column FROM mytable WHERE condition(s) ORDER BY column ASC/DESC LIMIT num_limit OFFSET num_offset;
💡
Expression Aliasing Tip
Expressions can save post-processing time. Use clear aliases like AS gross_sales_millions so output columns are self-explanatory.
🗄️ Schema Explorer SELECTABLE
› north_american_cities
|
🎯 Exercises Checklist:
☐ 1. List all the Canadian cities and their populations
☐ 2. Order all the cities in the United States by their latitude from north to south
☐ 3. List all the cities west of Chicago, ordered from west to east
☐ 4. List the two largest cities in Mexico (by population)
☐ 5. List the third and fourth largest cities (by population) in the United States and their population
⚡ Practice Console
💡 Hint:
Loading hint...
🔑 Solution SQL:
SELECT * FROM movies; Data Output
No results. Run query to fetch data.