Snowflake SQL fundamentals
Let us learn SQL one question at a time. Start with five orders and four customers. Read the idea, predict the answer, then follow the query and compare the expected result.
Understand rows, columns and tables from Module 4. No account is required. Each SQL example includes fictional sample data; the website does not execute SQL.
Nine lessons, one familiar dataset
Order 103 has an unknown amount. Order 104 has an unknown customer. Dev has no orders. These deliberate gaps help us see why SQL choices matter.
SELECT: ask your first question
Read a SELECT query and explain the difference between choosing columns and changing stored data.
Explore lesson ↗Lesson 02 · 22 minWHERE: keep the rows you need
Build filters with comparisons, AND, OR, IN and date boundaries, then explain which records survive.
Explore lesson ↗Lesson 03 · 22 minNULL, CASE and COALESCE
Handle missing values honestly and build readable business labels with conditional expressions.
Explore lesson ↗Lesson 04 · 22 minORDER BY, DISTINCT and LIMIT
Choose unique outputs, request a stable sort and understand what limiting a result does.
Explore lesson ↗Lesson 05 · 22 minAggregates, GROUP BY and HAVING
Turn individual records into summaries and distinguish row filters from group filters.
Explore lesson ↗Lesson 06 · 22 minINNER, LEFT, RIGHT and FULL joins
Connect related datasets while tracking matched rows, unmatched rows and the grain of the result.
Explore lesson ↗Lesson 07 · 22 minCROSS JOIN and self joins
Generate intentional combinations and compare rows from the same source without accidental duplication.
Explore lesson ↗Lesson 08 · 22 minStrings, dates and type conversions
Use simple functions to clean text, group dates and convert values without hiding invalid inputs.
Explore lesson ↗Lesson 09 · 22 minWITH, UNION and a complete business question
Break a query into readable steps and distinguish stacking results from joining related records.
Explore lesson ↗Understand why the answer is right.
Each lesson includes guided explanations, a step-by-step diagram, worked SQL, expected result tables and a practice challenge. Continue with advanced SQL and window functions in Module 6.
Explore SQL visual explanations →