0Pricing
SQL Academy icon

SQL Academy

SQLDataDatabaseBackendBeginner

Manage and query databases effectively by learning SQL at SQL Academy.

🤖 AI-Powered📚 46 courses👥 100,000+ learners⭐ 4.9 rating
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.

Start Learning →

How You'll Learn

🎯
Interactive Lessons
Hands-on coding exercises with real-time feedback
🤖
AI Tutor
Get instant help from our AI when you're stuck
💻
Built-in Editor
Write and run code directly in your browser
🏆
Certificate
Earn a certificate when you complete the course
Curriculum

46 Courses

Every course in the SQL Academy learning path.

01

Introduction to SQL & Databases

A13 lessons

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

02

SQL Foundations: Tables, Rows, Columns

A14 lessons

Start your SQL journey from zero. Understand what a relational database is, how data is organised into tables, why primary keys matter, how…

03

SELECT Mastery

A14 lessonsPRO

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

04

Sorting Results: ORDER BY, LIMIT & Top-N

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.

05

Filtering Patterns

A24 lessonsPRO

Master the everyday filter toolbox: pattern matching with LIKE, set membership with IN, range checks with BETWEEN, and safe handling of NUL…

06

Aggregations and GROUP BY

A24 lessonsPRO

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

07

Multi-Table Queries: JOIN Basics

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-…

08

Working with Dates and Times

A24 lessonsPRO

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

09

String Functions and Text Search

A24 lessonsPRO

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

10

Practical INSERT / UPDATE / DELETE

A24 lessonsPRO

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

11

Working with NULLs

A24 lessonsPRO

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

12

Conditional Logic with CASE

A24 lessonsPRO

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

13

Numbers and Math in SQL

A24 lessonsPRO

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

14

DISTINCT and Removing Duplicates

A24 lessonsPRO

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

15

Constraints and Data Integrity

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

First Database Design Project

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…

17

Subqueries and CTEs

B14 lessonsPRO

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

18

Window Functions Deep Dive

B14 lessonsPRO

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

19

Set Operations and Pivot Patterns

B14 lessonsPRO

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

20

Advanced JOIN Patterns

B14 lessonsPRO

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

21

PostgreSQL JSON and JSONB

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

Views and Materialized Views

B14 lessonsPRO

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

23

Self Joins and Hierarchical Data

B14 lessonsPRO

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

24

Recursive Queries with WITH RECURSIVE

B14 lessonsPRO

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

25

GROUPING SETS, ROLLUP & CUBE

B14 lessonsPRO

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

26

EXISTS, ANY, ALL & Correlated Subqueries

B14 lessonsPRO

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

27

Working with Arrays in PostgreSQL

B14 lessonsPRO

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

28

Query Performance: EXPLAIN and Planning

B24 lessonsPRO

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

29

Index Strategies

B24 lessonsPRO

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

30

Transactions and Concurrency Control

B24 lessonsPRO

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

31

Triggers and Stored Procedures

B24 lessonsPRO

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

32

Advanced Indexing and Search

B24 lessonsPRO

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

33

Window Functions Advanced

B24 lessonsPRO

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

34

Time-Series Patterns in SQL

B24 lessonsPRO

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

35

Modern SQL Workflows

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…

36

Row-Level Security & Access Control

B24 lessonsPRO

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

37

Backup, Restore & Disaster Recovery

B24 lessonsPRO

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

38

Schema Migrations at Scale

C14 lessonsPRO

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

39

Partitioning Large Tables

C14 lessonsPRO

Tame multi-billion row tables with declarative partitioning. Pick range, list or hash partitioning, prune at query time, and attach or deta…

40

Replication and High Availability

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

Performance Tuning: VACUUM, ANALYZE and Stats

C14 lessonsPRO

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

42

Database Observability and DBA Skills

C14 lessonsPRO

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

43

Geospatial SQL with PostGIS

C14 lessonsPRO

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

44

Data Warehousing & Star Schemas

C14 lessonsPRO

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

45

Event Sourcing & Temporal Tables

C14 lessonsPRO

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

46

Sharding and Horizontal Scaling

C24 lessonsPRO

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

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.

Start SQL Academy Now

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

Get Started Free →Browse All Courses