Creating Column Aliases with AS
In the query results so far, I’ve allowed the DBMS to use default values for column headings. (A column’s default heading in a result is its original column name in its source table). You can use the AS clause to create a column alias. A column alias is an alternative name (identifier) that you specify to control how column headings are displayed in a result. Use column aliases if column names are cryptic, hard to type, too long, or too short.
Specify column aliases in the SELECT clause of a SELECT statement: Follow a column name with the AS keyword and an alias enclosed in single or double quotes, but mind the following variations:
You may omit the quotes if the alias is a single word that contains only letters, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access