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.
Data modelling tools for Databricks compared: what Catalog Explorer draws for free, and what DbSchema, erwin, ER/Studio, Hackolade and SqlDBM read from Unity Catalog.
How Kerberos signs you in to SQL Server, PostgreSQL and Oracle over JDBC: the driver settings, why the data still needs encryption, and the fix for the two common errors.
SQL Server schema comparison tools compared: DbSchema, Redgate SQL Compare, dbForge Schema Compare and xSQL, what each compares, what it costs, and how to compare a schema in DbSchema.
Why an ALTER TABLE can freeze a busy SQL Server, the two settings that prevent it, statements that avoid a table rewrite, and how to check a release before and after it runs.
Learn the SQL wildcard characters from short examples with their results: % and _, SQL Server's [ ] and [^ ], ESCAPE for a literal % or _, and what MySQL, PostgreSQL and SQLite use instead.
Learn SQL aggregate functions with COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING, and ROLLUP examples. Build reporting queries faster in DbSchema.
Learn the SQL LIKE operator from short examples with their results: % and _, NOT LIKE and NULL, ESCAPE, ILIKE and case, several patterns, and index use.
Learn SQL HAVING with GROUP BY from short examples with their results: COUNT, AND, COUNT DISTINCT, HAVING without GROUP BY, HAVING vs WHERE, and the errors each engine raises.
ANY is true when one row of a subquery matches, ALL only when every row does. Short examples with their results, IN and NOT IN, NULLs and empty subqueries.
SQL aliases explained: rename columns and tables with AS, quote aliases with spaces, and see where an alias may be referenced in WHERE, GROUP BY, HAVING and ORDER BY.