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.
Learn how to design an efficient MongoDB user collection. Explore embedding versus referencing, schema validation, and visual data modeling for developers.
Move a MySQL or PostgreSQL schema to MongoDB: map tables to collections, embed or reference each relationship, and turn constraints into validation rules.
A database migration tool turns schema changes into SQL that every environment runs once, in order. See a real PostgreSQL 16 migration fail and pass.
Learn why database schema versioning is essential for engineering managers to eliminate deployment bottlenecks and automate migration scripts safely.
What the Replit and PocketOS incidents show about AI coding agents and production data, and the roles, scripts and review step that stop the next one.
Can you roll back a database schema change? Which engines undo DDL in a transaction, what data is gone for good, and how to run the reverse script.
Learn how to create a Cassandra keyspace in cqlsh and DbSchema, choose the right replication strategy, and pick a safe replication factor.
Learn how to create a Cassandra materialized view, understand the CQL restrictions, and decide when a view is appropriate for a new query path.
MySQL vs MongoDB for a new service: schema enforcement, JOIN vs $lookup, embedding vs referencing, transactions and schema changes, each shown on the same data in MySQL 9.1 and MongoDB 8.2.
Learn practical tips for using indexes and foreign keys to improve database consistency and query performance.