Course

Learn SQL

Think in tables and sets until the database works for you: joins, aggregation, window functions, schema design, transactions, indexes and query plans: the language every serious system speaks underneath.

This is the whole SQL course in the LoWisa phone app, level by level: 16 levels, 47 lessons and 141 ideas, each taught and then checked. The first level, Start Here: Think in Tables and Sets, is free.

Updated 2026-11-25

What you can do as you go

Where you areWhat you can do
Start Here: Level 4You query correctly: filters, joins and aggregation over real relational data, with NULL handled honestly.
Levels 5–8You stage complex analytics with CTEs and window functions, and modify data safely and idempotently.
Levels 9–12You design schemas with real constraints, command transactions and isolation, and read query plans like X-rays.
Levels 13–15You secure, warehouse and optimise production SQL: and defend every modelling and indexing decision.
Project ladderFive desktop app projects from pure-SQL analytics to a dimensional warehouse: proof the database is yours to command.

The SQL course, level by level

LevelLessons in it
Start Here: Think in Tables and SetsRelational Data; Queries vs Application Code
Level 1: Query FoundationsSELECT and Columns; Filtering and Sorting; Basic Query Construction
Level 2: Expressions & DataData Types; Operators and Functions; NULL and Three-Valued Logic
Level 3: Joining DataInner and Outer Joins; Multi-Table Relationships; Designing Correct Joins
Level 4: AggregationGROUP BY; Aggregate Functions; HAVING and Analytical Summaries
Level 5: Subqueries & CTEsSubqueries; Common Table Expressions; Breaking Complex Queries Into Stages
Level 6: Window FunctionsRanking and Partitioning; Running and Moving Calculations; Advanced Analytical Queries
Level 7: Data ModificationINSERT, UPDATE and DELETE; Upserts and Merge Patterns; Safe Data Changes
Level 8: Schema DesignTables and Data Types; Keys and Constraints; Normalisation and Relationships
Level 9: TransactionsACID; Isolation and Concurrency; Locks, Deadlocks and Transaction Design
Level 10: Indexes & Query PlanningIndex Structures; Query Execution Plans; Diagnosing Slow Queries
Level 11: Advanced SQLRecursive Queries; Advanced Grouping and Set Operations; Complex Relational Patterns
Level 12: SecurityUsers, Roles and Permissions; SQL Injection Awareness; Secure Database Access
Level 13: Warehousing SQLDimensional Modelling; Analytical Transformations; Large-Scale SQL Patterns
Level 14: SQL PerformanceQuery Optimisation; Index and Schema Trade-Offs; Production Database Performance
Level 15: SQL MasteryReading Complex Query Plans; Correctness Under Concurrency; Designing and Improving Production SQL

Each level has its own page with every lesson and what it teaches.

Start Here: Think in Tables and Sets: what the free first level teaches

Relational Data

  • Tables. Relational data lives in tables: rows are the things, columns are their facts, and every cell is one value.
  • Relationships by key. Tables relate through keys: an order row carries the customer id that names exactly one customer row.
  • Set thinking. SQL thinks in sets: you describe the rows you want, and the database finds them: no loops, no indexes to walk.

Queries vs Application Code

  • Declarative queries. A query is declarative: it states WHAT you want, and the database’s planner decides HOW to fetch it.
  • Push work to the database. Filtering and summing belong in the database: shipping a million rows to code that keeps ten is the classic waste.
  • One language, many engines. Standard SQL runs everywhere; each engine: Postgres, MySQL, SQLite: adds its own dialect at the edges.

Projects you build

The course has 5 projects, built in the LoWisa desktop app, each in the role of someone who does this work.

RoleProjectThe situation
SQL DeveloperBookshop Analytics, Pure SQLA small bookshop hands you their SQLite file: sales, titles, customers. Every business question gets answered in SQL alone: no spreadsheet, no application code.
Data AnalystSubscription Metrics With Window FunctionsA subscription startup needs its truth: MRR by month, churn, retention cohorts, top customers by lifetime value: computed in SQL over their raw events table.
Database EngineerRescue a Corrupted SchemaYou inherit an orders database that grew without constraints: duplicate customers, orphaned orders, float money drift, and a report that double-counts revenue through a fan-out join. Repair data and schema both.
Senior Data EngineerDesign and Optimise a Ticketing DatabaseAn event platform expects a million ticket sales: schema from scratch, seat-booking that cannot double-sell under concurrency, and queries that stay fast as the data grows.
Analytics EngineerBuild a Warehouse LayerThe bookshop grew into a chain. Build the analytical layer: dimensional model, layered SQL transforms, and the audited reports the executives will actually trust.

How you learn it

  • One idea at a time. Each lesson teaches a few ideas and asks you about each before it moves on.
  • A checkpoint and flashcards at the end of every level. See Checkpoints and flashcards.
  • Games on what you have learned. See Revision games.
  • On your phone. The app is on Google Play and the App Store. See Getting started.

Frequently asked questions

How many levels does the LoWisa SQL course have?

16 levels with 47 lessons, from Start Here: Think in Tables and Sets to Level 15: SQL Mastery.

Is the SQL course free?

The first level, Start Here: Think in Tables and Sets, is free, with its checkpoint and flashcards. A plan opens the rest; see Plans and credits in the Help centre.

Where does the SQL course start?

With Start Here: Think in Tables and Sets. Its first lesson is "Relational Data".

Start SQL with the free first level

LoWisa is on Google Play and the App Store.