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.
Create tables in PostgreSQL with practical syntax, data types, keys, defaults, and IF NOT EXISTS examples. Design and sync tables with DbSchema.
BEGIN, COMMIT, ROLLBACK and SAVEPOINT run on PostgreSQL 18: the aborted transaction block, isolation levels, and the commands that cannot run inside a transaction.
Run MySQL in Docker with one docker run command, persist data in a named volume, connect from the host and from DbSchema, and fix common startup errors.
Insert multiple rows in one SQL Server statement: the multi-row VALUES syntax, the documented 1,000-row limit and error 10738, and INSERT ... SELECT.
Learn how to set up SQL Server failover clustering and connect from DbSchema for high-availability environments.
Learn SQL Server database normalization from 1NF to 6NF: what breaks each normal form, the sqlcmd fix, and how to check the result in DbSchema.
Learn SQL Server CREATE TABLE syntax, data types, constraints, temp tables, and SELECT INTO patterns. Design and deploy tables faster with DbSchema.
Return only the date from SQL Server's GETDATE with CAST or CONVERT, filter and group by date without breaking an index, and see every style code.
SQL INTERSECT on three small tables: the rules, duplicates and INTERSECT ALL, NULLs, INTERSECT vs INNER JOIN, operator order, and support in PostgreSQL, MySQL, SQLite and more.
Learn the SQL SELECT statement with syntax, WHERE, DISTINCT, JOINs, GROUP BY, ORDER BY, subqueries, and FAQs. Build queries visually in DbSchema.