sql aliases code example
Example 1: sql as
SELECT CustomerID AS ID, CustomerName AS Customer
Example 2: sql as
-- AS is a keyword that allows you to rename a column or table using an alias
SELECT column_name AS 'Alias'
FROM table_name;
Example 3: alias in sql
ALIAS command in SQL is the name that
can be given to any table or a column.
This alias name can be referred in WHERE
clause to identify a particular table or a column.