What is an alias?

SQL SELECT, filtering and sorting · Freshers

Model answer

A temporary name for a column or table in a query: SELECT price * qty AS total FROM orders o. Aliases make results readable and are required to refer to the same table twice (self-joins).

Learn this topic

SELECT, FROM and WHERE: Your First Queries in the course SQL for Beginners: Learn Databases Step by Step.

Sign in to add your own answer.

More questions