# 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. The full outline of the LoWisa SQL course: 16 levels, 47 lessons. The first level is free.

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.

## What you can do as you go

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

## The SQL course, level by level

| Level | Lessons in it |
| --- | --- |
| [Start Here: Think in Tables and Sets](/courses/sql/start-here/) | Relational Data; Queries vs Application Code |
| [Level 1: Query Foundations](/courses/sql/level-1-query-foundations/) | SELECT and Columns; Filtering and Sorting; Basic Query Construction |
| [Level 2: Expressions & Data](/courses/sql/level-2-expressions-and-data/) | Data Types; Operators and Functions; NULL and Three-Valued Logic |
| [Level 3: Joining Data](/courses/sql/level-3-joining-data/) | Inner and Outer Joins; Multi-Table Relationships; Designing Correct Joins |
| [Level 4: Aggregation](/courses/sql/level-4-aggregation/) | GROUP BY; Aggregate Functions; HAVING and Analytical Summaries |
| [Level 5: Subqueries & CTEs](/courses/sql/level-5-subqueries-and-ctes/) | Subqueries; Common Table Expressions; Breaking Complex Queries Into Stages |
| [Level 6: Window Functions](/courses/sql/level-6-window-functions/) | Ranking and Partitioning; Running and Moving Calculations; Advanced Analytical Queries |
| [Level 7: Data Modification](/courses/sql/level-7-data-modification/) | INSERT, UPDATE and DELETE; Upserts and Merge Patterns; Safe Data Changes |
| [Level 8: Schema Design](/courses/sql/level-8-schema-design/) | Tables and Data Types; Keys and Constraints; Normalisation and Relationships |
| [Level 9: Transactions](/courses/sql/level-9-transactions/) | ACID; Isolation and Concurrency; Locks, Deadlocks and Transaction Design |
| [Level 10: Indexes & Query Planning](/courses/sql/level-10-indexes-and-query-planning/) | Index Structures; Query Execution Plans; Diagnosing Slow Queries |
| [Level 11: Advanced SQL](/courses/sql/level-11-advanced-sql/) | Recursive Queries; Advanced Grouping and Set Operations; Complex Relational Patterns |
| [Level 12: Security](/courses/sql/level-12-security/) | Users, Roles and Permissions; SQL Injection Awareness; Secure Database Access |
| [Level 13: Warehousing SQL](/courses/sql/level-13-warehousing-sql/) | Dimensional Modelling; Analytical Transformations; Large-Scale SQL Patterns |
| [Level 14: SQL Performance](/courses/sql/level-14-sql-performance/) | Query Optimisation; Index and Schema Trade-Offs; Production Database Performance |
| [Level 15: SQL Mastery](/courses/sql/level-15-sql-mastery/) | Reading 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.

| Role | Project | The situation |
| --- | --- | --- |
| SQL Developer | Bookshop Analytics, Pure SQL | A small bookshop hands you their SQLite file: sales, titles, customers. Every business question gets answered in SQL alone: no spreadsheet, no application code. |
| Data Analyst | Subscription Metrics With Window Functions | A 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 Engineer | Rescue a Corrupted Schema | You 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 Engineer | Design and Optimise a Ticketing Database | An 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 Engineer | Build a Warehouse Layer | The 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](/help/checkpoints-and-flashcards/).
- **Games on what you have learned.** See [Revision games](/help/revision-games/).
- **On your phone.** The app is on Google Play and the App Store. See [Getting started](/help/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.

---

Source: https://lowisa.dev/courses/sql/ · Updated 2026-11-25
