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 INSERT INTO syntax with one row, several rows, defaults and INSERT INTO SELECT, plus the errors PostgreSQL, MySQL and SQLite return when an insert fails.
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.
Six database design mistakes that cost you later: foreign keys, indexes, JSON columns, normalization, naming and documentation, with the fix for each.
Learn MySQL CREATE USER and GRANT syntax for 5.7, 8.0, and 8.4, including localhost, wildcard hosts, roles, and secure privilege examples.
Text-to-SQL tools compared by what they see of your schema, BIRD and Spider 2.0 scores read 11 Oct 2026, and five checks before AI-written SQL runs.
Learn SQL NULL-handling functions like IFNULL, ISNULL, COALESCE, and NVL, with examples, pitfalls, and practice exercises.
Learn how to create virtual foreign keys in MongoDB using DbSchema to visualize relationships and browse related collection data.
MongoDB for beginners: the NoSQL document model, collections and BSON, replica sets and sharding, the SQL to MongoDB mapping, and where the document model fits.
What ALTER TABLE changes in Cassandra 5.0, from adding and dropping columns to table options, and what to do when you need a new column type, primary key or table name.