Loading lesson path
Concept visual
Start at both ends
Overview
SQL aliases are used to give a column or a table a temporary name. Aliases are used to make column names more readable. An alias only exists for the duration of that query.
keyword.
The following SQL creates two aliases, one for the CustomerID column and one for the CustomerName column:
SELECT CustomerID AS ID, CustomerName AS Customer
FROM Customers;column_name AS alias_name
table_name;column_name(s)
table_name AS
alias_name;Orders tables used in the examples:
Obere Str. 57