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.
Is SQLite relational, and what is a .sqlite file? Then open one in DbSchema as an editable ER diagram, with the SQLite rules that change the model.
Learn how to set up SQL Server failover clustering and connect from DbSchema for high-availability environments.
Learn SQL Server database sharding with shard keys, routing, cross-shard design, and trade-offs. Plan scalable SQL Server architectures in DbSchema.
Learn SQL Server CREATE TABLE syntax, data types, constraints, temp tables, and SELECT INTO patterns. Design and deploy tables faster with DbSchema.
Learn SQL Server MERGE for UPSERT and sync jobs, compare WHEN MATCHED options, OUTPUT logging, and safer alternatives. Test the logic in DbSchema.
What a database diagram shows, how to read the lines between tables, and how DbSchema's free Community Edition reverse-engineers a live database into an interactive diagram.
Learn SQL DELETE syntax with WHERE, JOIN, and subquery examples plus transaction-safe cleanup patterns. Includes DELETE vs TRUNCATE vs DROP and production safety tips.
Learn SQL UPDATE syntax with practical examples, WHERE safety checks, JOIN-based updates, and transaction-safe patterns for MySQL, PostgreSQL, and SQL Server.
SQL MIN() and MAX() explained: syntax, NULL handling, GROUP BY and ORDER BY, WHERE vs HAVING, text and date columns, and selecting the full row.
Learn SQL tables with practical examples: what a table is, how to CREATE, ALTER, and DROP tables, and how primary keys and constraints work.