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 SQL GROUP BY with single and multi-column examples, HAVING, JOINs, aggregations, and common mistakes.
Learn SQL GROUP BY with clear examples for COUNT, SUM, AVG, HAVING, and JOIN-based reporting queries.
Learn SQL BETWEEN and NOT BETWEEN with numeric, date, text, and time examples, plus common mistakes and best practices.
Create custom data types in DbSchema’s Logical Design to standardize columns; on deployment they convert to native DBMS types like VARCHAR.
Learn what an index is in MongoDB, why it matters, and how to use it. This beginner tutorial explains single-field, compound, and text indexes with examples in MongoDB shell and DbSchema.
Learn how to create diagrams for MongoDB, implement validation rules and visually manage MongoDB databases.
Understand MongoDB aggregation pipelines with clear examples. Learn how to filter, group, sort, and transform data step by step in this beginner-friendly guide.
Learn the best MongoDB schema design practices for 2026, common mistakes to avoid, and how DbSchema helps visualize, document, and optimize your collections.
How MongoDB validation rules work: a $jsonSchema validator in mongosh, the validationLevel and validationAction settings, and the same rule designed in DbSchema.
What an embedded document and an array field are in MongoDB, with minimal examples, dot-notation queries, $elemMatch, and multikey indexes on array fields.