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.
How to compare two database schemas: a catalog query, a schema-only dump diff and a model compare that writes the migration SQL, tested on PostgreSQL 16.
Database schema version control with Git: keep the schema as a text model file, review its diffs, merge branches and sync the change into the database.
Confirm schema drift between production and staging: pick a reference, compare it in DbSchema, decide each difference, and schedule the check.
Review an AI-proposed schema change before it runs: what the DbSchema AI Assistant saw, what it missed, and how to test it in the model first.
Browse master-detail data across foreign keys in PostgreSQL 16. See what ON DELETE CASCADE removes, how to turn a link into a lookup, and the DbSchema way.
Reverse engineer a PostgreSQL database into an ER diagram: what pg_catalog holds, the psql route, DbSchema over JDBC, virtual foreign keys and a schema check.
PostgreSQL schema version control: keep a model file or schema dump in Git, generate the migration between versions, and run it in one transaction.
How DbSchema's visual query builder writes PostgreSQL joins for you, where it stops at recursive queries, and how to write and guard WITH RECURSIVE.
Reverse engineer a MySQL database into an ER diagram, find out why MyISAM tables show no relations, and add them back with virtual foreign keys.
Perpetual vs subscription software license for database tools: the 10-month break-even, five-year costs, and what stops when payments end.