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 create Cassandra tables in cqlsh and DbSchema, choose partition and clustering keys, and use table options without common modeling mistakes.
Learn how to create triggers in PostgreSQL using psql and DbSchema, with trigger types, parameters, examples, and practical guidance.
Learn how to use PostgreSQL aggregate functions like AVG, COUNT, MIN, MAX, and SUM in psql and DbSchema with practical examples.
Use DROP TABLE in PostgreSQL with IF EXISTS, CASCADE, and multi-table examples. Review dependencies first and manage changes visually in DbSchema.
Learn how to document PostgreSQL databases using psql comments and DbSchema visual documentation workflows for teams.
Learn how to create a PostgreSQL database using psql and DbSchema, with setup steps, command examples, and verification tips.
Learn how to use SQLite EXPLAIN and EXPLAIN QUERY PLAN to understand execution steps and optimize queries in sqlite3 and DbSchema.
Learn how to create and use SQLite views in sqlite3 and DbSchema, including examples, benefits, and common limitations.
Learn how to create SQL Server user-defined functions in sqlcmd and DbSchema, including function types, permissions, syntax, and examples.
Learn how SQL Server distributed transactions work, including permissions, transaction types, and practical execution in sqlcmd and DbSchema.