Read and filter records
Select columns and control row order; Filter records with explicit conditions; Treat missing amounts as unknown.
Preparing your lesson…
Beginner / Structured learning draft / Version 0.9
Structured learning draftUse SQL to answer practical questions about fictional orders. Filter records, handle missing values, join tables, group results and use window functions, then produce a report whose totals you can reconcile.
This open learning manuscript is undergoing course-specific editorial review. It does not provide certification. Progress and notes are stored only in this browser.
The problem
Use SQL to answer practical questions about fictional orders. Filter records, handle missing values, join tables, group results and use window functions, then produce a report whose totals you can reconcile.
Learners comfortable with spreadsheet rows and columns who want to write and check their own SQL reports.
Portfolio-ready project
Deliverable: A runnable query, fixture records, expected-result table and reconciliation note.
Downloads open without an account. Practice data is fictional; review each file before using it in another system.
Course plan
Select columns and control row order; Filter records with explicit conditions; Treat missing amounts as unknown.
Count records and summarise known amounts; Keep customers without orders in a SQL report; Separate row filters from group filters.
Classify a record with CASE; Break an analysis into named query stages; Compare each sale with its customer total.
Find duplicate identifiers before reporting; Reconcile included and excluded records; Deliver a report with zero-order customers included.
Check a candidate identifier for duplicates.
Open lessonAccount for input records under an explicit rule.
Open lessonPreserve the complete customer population.
Open lessonReview your finished work
Use these questions before calling the project finished. Keep a short record of your inputs, results and remaining limitations.
Free companion lessons
Watch Querying or Relating to see selection and joins explained using actual tables. Examples begin with SQLite; check syntax when using PostgreSQL.
Practice prompt: Draw two small tables, predict the joined rows, then compare your prediction with the query result.
Checked 2026-10-07. Opens on the provider’s site. Optional certificates may cost extra.Source-led learning
Use these primary references to check the method and any version-specific details before applying your work.