About this course
This free course starts with installing a database and writing your first SELECT, then works through inserts and updates, filtering, every JOIN type, GROUP BY and aggregates, constraints, built-in functions, window functions, CTEs, stored procedures, and transactions. The core syntax is the same on every relational engine, and when you need the full rules for a statement, the PostgreSQL documentation is a free, detailed reference to check against.
Refreshed lessons are run on three engines rather than one: MariaDB, PostgreSQL, and SQL Server. Where they disagree, for example LIMIT versus TOP, date arithmetic, or string concatenation, the lesson shows each spelling next to the others, so you can move a query from one database to another without guessing.
If SQL is new to you, go in order from Getting Started through the JOINs chapter, since the later chapters assume you can join two tables without thinking about it. If you already write queries every day, jump to ranking functions, CTEs, or transactions.

