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.
SQL aliases explained: rename columns and tables with AS, quote aliases with spaces or reserved words, and see where an alias may be referenced in WHERE, GROUP BY, HAVING and ORDER BY.
Learn how to use the SQL WHERE clause with comparison, range, list and pattern operators, NULL, AND/OR precedence, and UPDATE or DELETE, with every result shown.
SQL SELECT DISTINCT with single and multi-column examples, how NULL is handled, the ORDER BY error, COUNT(DISTINCT) on two columns, and DISTINCT vs GROUP BY.
Learn how to visualize MongoDB relationships with embedding, references, one-to-many patterns, and DbSchema diagrams. Decide when to embed vs reference.
Six database design mistakes that cost you later: foreign keys, indexes, JSON columns, normalization, naming and documentation, with the fix for each.
Compare the best ER diagram tools in 2026 for PostgreSQL, MySQL, SQLite, MongoDB, and multi-database teams. Visual design, reverse engineering, and documentation.
BEGIN, COMMIT, ROLLBACK and SAVEPOINT run on PostgreSQL 18: the aborted transaction block, isolation levels, and the commands that cannot run inside a transaction.
Connect DbSchema to MySQL, read the schema as an ER diagram, export HTML5 documentation, keep the model in Git and sync it with the database.
Learn MySQL CREATE USER and GRANT syntax for 5.7, 8.0, and 8.4, including localhost, wildcard hosts, roles, and secure privilege examples.
Learn how to create tables in MySQL with SQL commands, prerequisites, and visual design steps in DbSchema.