DbSchema Blog

Database design, migrations, SQL and everyday database work — explained with practical examples.

SQL tutorial

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.

Tutorials 17 Oct 2026

SQL Aliases Explained with Examples | DbSchema

SQL aliases explained: rename columns and tables with AS, quote aliases with spaces or reserved words, and see where an alias may be referenced in WHERE, GROUP BY, HAVING and ORDER BY.