SQL Academy logo
SQLBeginnerDataLevels A1 → C222 languages

SQL Academy

Manage and query databases effectively by learning SQL at SQL Academy. A CoddyKit learning path of 46 short courses and 183 interactive lessons, with a 24/7 AI tutor at your side.

Courses
46
Lessons
183
Interactive steps
2,424
Free to start
Course 1
Curriculum

46 courses in this path

Every course in the SQL Academy path, in learning order. The first one is free.

1

A13 lessonsFree

Your very first step into the world of databases and SQL — no experience needed.

2

A14 lessonsPRO

Start your SQL journey from zero. Understand what a relational database is, how data is organised into tables, why primary keys matter, how NULL works, and which data types you will use every day.

3

A14 lessonsPRO

Become fluent with the SELECT statement. Project columns, build expressions, filter rows with WHERE, sort the result set, and paginate large outputs cleanly.

4

A14 lessonsPRO

Bring order to your data. Sort by one or many columns, control direction, and fetch just the rows you need with LIMIT and OFFSET.

5

A24 lessonsPRO

Master the everyday filter toolbox: pattern matching with LIKE, set membership with IN, range checks with BETWEEN, and safe handling of NULL values with COALESCE.

6

A24 lessonsPRO

Summarise data with aggregate functions, group by one or more columns, filter groups with HAVING, and avoid the classic NULL-in-aggregate traps.

7

A24 lessonsPRO

Bring tables together. Learn the relational join model, INNER vs OUTER joins, and how to query the same table twice using aliases and self-joins.

8

A24 lessonsPRO

Handle the trickiest data type: time. Use date arithmetic, extract parts, manage time zones, and build period-over-period reports.

9

A24 lessonsPRO

Slice, clean and search text in SQL. Concatenate, trim, pad, replace, and use full-text search vectors for natural-language queries.

10

A24 lessonsPRO

Move from reading to writing. Insert many rows, upsert with ON CONFLICT, update with joins, and delete safely without orphaning related data.

11

A24 lessonsPRO

Master the trickiest value in SQL. Understand three-valued logic and handle missing data safely with IS NULL, COALESCE and NULLIF.

12

A24 lessonsPRO

Add branching logic to your queries. Use CASE expressions to bucket, label and transform data right inside SELECT.

13

A24 lessonsPRO

Crunch numbers with confidence. Arithmetic, rounding, casting and handy math functions to compute exactly what you need.

14

A24 lessonsPRO

Clean, unique results every time. Use DISTINCT, DISTINCT ON and dedup techniques to handle repeated rows.

15

B14 lessonsPRO

Stop bad data at the door. Use NOT NULL, CHECK, UNIQUE, FOREIGN KEY, DEFAULT and generated columns so the database enforces business rules.

16

B14 lessonsPRO

Put it all together. Model a real blog database from scratch — users, posts, comments — pick keys and types, add indexes, and seed it with test data.

17

B14 lessonsPRO

Compose queries by nesting and naming. Master scalar, row and table subqueries, the difference between correlated and non-correlated, plain and recursive CTEs.

18

B14 lessonsPRO

Unlock the most powerful feature of modern SQL. Compute running totals, ranks, moving averages, and time-series patterns without leaving SQL.

19

B14 lessonsPRO

Combine result sets with UNION, INTERSECT, and EXCEPT. Pivot tall data into wide reports with CASE expressions and PostgreSQL crosstab.

20

B14 lessonsPRO

Go beyond INNER and LEFT. Use CROSS, LATERAL, anti- and semi-joins, and learn how to make many-way joins fast.

21

B14 lessonsPRO

Treat documents like first-class data. Store, query and index JSONB safely, and know when to model with JSONB and when to normalise.

22

B14 lessonsPRO

Turn complex queries into reusable objects. Use plain views for logical reuse, updatable views for transparent abstractions, and materialised views for speed.

23

B14 lessonsPRO

Relate a table to itself. Model managers, categories and friend lists, and query parent-child relationships.

24

B14 lessonsPRO

Query trees and graphs in pure SQL. Walk hierarchies of any depth using recursive common table expressions.

25

B14 lessonsPRO

Summarize data at many levels at once. Build subtotals and grand totals without UNION-ing dozens of queries.

26

B14 lessonsPRO

Write powerful predicates. Use EXISTS, IN, ANY and ALL with correlated subqueries to express complex conditions.

27

B14 lessonsPRO

Store and query lists inside a single column. Build, search and expand array data the PostgreSQL way.

28

B24 lessonsPRO

Stop guessing — read what the database is actually doing. Master EXPLAIN, recognise scan and join strategies, and fix the slow queries you find.

29

B24 lessonsPRO

Indexes are the lever between 'fast' and 'unusable'. Learn the index types, column ordering, partial and expression indexes, and how to keep them healthy.

30

B24 lessonsPRO

Build correct multi-user systems. Understand ACID, the four isolation levels, deadlocks, and the trade-offs of optimistic vs pessimistic locking.

31

B24 lessonsPRO

Push behaviour into the database when it makes sense. Write triggers, PL/pgSQL functions, and audit tables that update themselves.

32

B24 lessonsPRO

Beyond B-tree. Fuzzy match with trigrams, search natural language with tsvector, query geometry with PostGIS, and embed vectors with pgvector.

33

B24 lessonsPRO

Master the second half of window functions. Frame clauses, bucketing, and reporting patterns that read like dashboards.

34

B24 lessonsPRO

Store and query billions of metrics. Use TimescaleDB hypertables, continuous aggregates, compression and retention policies.

35

B24 lessonsPRO

Write SQL like an engineer. Use dbt to build analytics pipelines, lint with SQLFluff, test with dbt tests and Great Expectations, and ship schema changes through CI.

36

B24 lessonsPRO

Protect data at the row level. Manage roles, privileges and policies so users only see what they should.

37

B24 lessonsPRO

Never lose data. Plan and execute backups, point-in-time recovery and restores so you can survive failures.

38

C14 lessonsPRO

Ship schema changes to a live production database without downtime. Master online migrations, concurrent indexes, and zero-downtime renames.

39

C14 lessonsPRO

Tame multi-billion row tables with declarative partitioning. Pick range, list or hash partitioning, prune at query time, and attach or detach partitions on the fly.

40

C14 lessonsPRO

Keep your database up and your data safe. Stream WAL to replicas, use logical replication, fail over leaders, and route reads to followers.

41

C14 lessonsPRO

The DBA classics. Understand MVCC, fight bloat, keep planner statistics fresh, and unlock index-only scans.

42

C14 lessonsPRO

Run databases in production. Top queries with pg_stat_statements, log analysis with pgBadger, connection pooling, and capacity planning.

43

C14 lessonsPRO

Query the world. Store points, lines and polygons and answer location questions with PostGIS spatial SQL.

44

C14 lessonsPRO

Design SQL for analytics. Build fact and dimension tables, star schemas and analytical queries for reporting at scale.

45

C14 lessonsPRO

Keep history, not just the present. Model append-only events, audit logs and time-travel queries in SQL.

46

C24 lessonsPRO

When one box runs out — shard. Pick a sharding strategy, deal with cross-shard queries, and know when you should NOT shard.

CoddyKit PRO

Unlock all 46 courses in this path, and every other path

AI tutor, certification exam and certificate. Works on web, iOS and Android.

See all plans
Yearly$29.90 / yearAbout $2.49 a monthPay onceLifetime$69.99 onceNo renewals. PRO forever.
Course Overview

SQL: The Language Every Data Professional Needs

SQL is the standard language for relational databases — used to store, retrieve, and transform data in PostgreSQL, MySQL, SQLite, and virtually every production data system. Whether you are building backend APIs, running analytics, or designing database schemas, SQL is a non-negotiable skill. This track covers the full spectrum, from your first SELECT statement through PostgreSQL-specific features like JSONB, window functions, PostGIS, and horizontal sharding.

What You Will Learn

You will start with the fundamentals: creating tables, filtering rows with WHERE, sorting with ORDER BY, and aggregating with GROUP BY. From there you will work through multi-table JOIN patterns, subqueries, CTEs, and correlated subqueries using EXISTS, ANY, and ALL. Advanced topics include window functions, recursive queries with WITH RECURSIVE, GROUPING SETS, ROLLUP and CUBE, PostgreSQL arrays and JSONB, triggers, stored procedures, row-level security, and geospatial queries with PostGIS. The track finishes at the DBA and architect level: schema migrations at scale, table partitioning, replication, high availability, performance tuning with VACUUM and ANALYZE, and sharding for horizontal scaling.

The Learning Path

Forty-six courses progress from A1 through C2. The first two courses introduce databases and relational concepts for complete beginners. A1 and A2 courses cover core querying — SELECT Mastery, Filtering Patterns, Aggregations and GROUP BY, Multi-Table Queries: JOIN Basics, and working with dates, strings, nulls, and conditional logic. B1 courses step up to Window Functions Deep Dive, Subqueries and CTEs, Recursive Queries with WITH RECURSIVE, and PostgreSQL JSON and JSONB. B2 tackles performance and production concerns: Query Performance: EXPLAIN and Planning, Index Strategies, Transactions and Concurrency Control, and Row-Level Security & Access Control. The C1 and C2 courses close with Schema Migrations at Scale, Partitioning Large Tables, Geospatial SQL with PostGIS, Event Sourcing & Temporal Tables, and Sharding and Horizontal Scaling.

How It Works

Each course is split into short, hands-on lessons you complete in the built-in SQL editor with real-time feedback on your queries. An AI tutor is available whenever you get stuck, explaining why a query returns unexpected results or how an index actually changes the execution plan.

How You'll Learn

  1. 01

    Interactive Lessons

    Hands-on coding exercises with real-time feedback

  2. 02

    AI Tutor

    Get instant help from our AI when you're stuck

  3. 03

    Built-in Editor

    Write and run code directly in your browser

  4. 04

    Certificate

    Earn a certificate when you complete the course

FAQ

Frequently Asked Questions

Is the SQL Academy course free?

Yes. You can start the SQL Academy course for free and complete its interactive lessons at no cost. An optional PRO subscription unlocks advanced AI tools and a shareable certificate.

Do I need prior experience to learn SQL?

No. The course begins with the fundamentals and gradually moves to more advanced topics, so you can start even with no prior SQL experience.

How will I learn SQL on CoddyKit?

You learn by doing. Short interactive lessons pair a clear explanation with a hands-on coding exercise that runs in real time, and a 24/7 AI tutor gives personalized help whenever you get stuck.

Do I get a certificate for completing SQL Academy?

Yes. PRO learners can take an exam and earn a shareable certificate of completion with a verifiable code for the SQL Academy course.

Can I learn SQL on my phone?

Yes. CoddyKit is available on the web and as native iOS and Android apps, so you can learn SQL on any device and your progress syncs across them.

How much does CoddyKit PRO cost?

The first course of SQL Academy is free. CoddyKit PRO unlocks every course: $5.90 per week, $7.90 per month, $29.90 per year, or $69.99 once for lifetime access with no renewals.

How long does it take to complete SQL Academy?

SQL Academy has 46 courses and 183 lessons. Most lessons take about 5–10 minutes, so the whole path is roughly 21 hours of hands-on practice, at your own pace.

Start SQL Academy Now

Join thousands of learners mastering programming with AI-powered lessons.