Learn SQL in your browser
A free SQL tutorial in short lessons on one shop database. Every example runs on real PostgreSQL in your browser, and the page checks your answers.
Database design, migrations, SQL and everyday database work — explained with practical examples.
A free SQL tutorial in short lessons on one shop database. Every example runs on real PostgreSQL in your browser, and the page checks your answers.
DbSchema runs natively on Windows, macOS and Linux from one installation kit. Which package to take per OS, and how to move a .dbs model between them.
Which SQL editor to use on macOS, Linux and Windows in 2026, compared on OS support, engines, free tier, offline use, query building and price.
Learn about a common SQL pattern used to find rows in one table that have no matching rows in another. And some related counting problems.
Learn SQL INTERSECT with examples, INTERSECT vs INNER JOIN, support notes, and FAQs. Find common rows faster and validate results in DbSchema.
What the SQL CASE expression is, simple vs searched syntax, and examples in SELECT, ORDER BY, GROUP BY, UPDATE, INSERT, DELETE, and aggregate queries.
Learn SQL basics and database fundamentals with real-world examples, core concepts, and practical next steps.
Learn SQL UNION and UNION ALL with syntax, duplicate rules, ORDER BY tips, comparisons, and FAQs. Build combined result queries faster in DbSchema.
How SQL statements are structured, a runnable example per command family, where engine syntax differs, and how to read a syntax error.
Learn the SQL SELECT statement with syntax, WHERE, DISTINCT, JOINs, GROUP BY, ORDER BY, subqueries, and FAQs. Build queries visually in DbSchema.
SQL AND, OR and NOT explained with runnable examples: what each returns, why precedence breaks AND/OR combinations, and how NOT behaves against NULL.