SQL for Real-World Data

16 lessons. Query synthetic data with SQLite: joins, grouped reports, CTEs, windows, and useful data-quality checks.

Learners who want to query tables and produce data reports.

Before you start: Read a small table and follow basic programming examples; no prior SQL required.

16 lessons · 42 exercises and projects. 2 free lessons and 5 free exercises. No account needed for free previews.

What you will learn

  • Combine tables with joins, grouping and CTEs.
  • Use window functions and data-quality checks in SQLite.
  • Build sales-and-returns reports and a data-quality audit.

Lessons are included in Course access. Exercises and projects are included in Practice Pack access. Complete Bundle includes both. Compare access options.

← All courses and learning paths · Suggested next course: Practical Python: Text and Data Automation

Practice SQL for real-world reporting

Learn to filter, join, and summarize data, then check how missing values and duplicate rows affect your results. Work through queries that build toward reliable reporting and analysis.

Start with a free SQL lesson or try a free SQL query exercise.

Course lessons

01Tables, rows, and output contractsSelect named columns while preserving the intended row grain.Free preview02Filtering with precise predicatesCombine filters without changing the requested boundaries.Free preview03NULL and missing valuesDistinguish SQL NULL from empty text and ordinary values.Course04Ordering, ties, and paginationProduce stable top-N and paginated results.Course05Expressions and safe normalizationCalculate output fields and apply only the stated normalization.Course06Aggregates and empty inputDefine how summaries handle missing values and empty tables.Course07Grouping and HAVINGChange the result grain and filter grouped summaries.Course08Joins and unmatched recordsChoose join behavior and count matches correctly.Course09Subqueries and existenceUse a scalar summary or a correlated existence test.Course10CTEs as named stagesCompose intermediate results with explicit grains.Course11Window functions and framesAdd ranks and running totals without collapsing rows.Course12Calendar dates and half-open rangesGroup fixed-format dates and select nonoverlapping periods.Course13Deduplication and deterministic winnersSeparate distinct values from selecting a representative record.Course14Data-quality checks as reportsIdentify missing and duplicate values without destructive repair.Course15Reports with stable schemasBuild summaries that retain zero groups and fixed counters.Course16Repeatable multi-stage SQL pipelinesPrevent join multiplication and validate report invariants.Course