SQL aliases are used to give a table, or a column in a table, a temporary name. Aliases are often used to make column names more readable. An alias only exists for the duration of that query. An alias is created with the AS keyword.
Why do we need alias in SQL?
It is used when name of column or table is used other than their original names, but the modified name is only temporary. Aliases are created to make table or column names more readable. The renaming is just a temporary change and table name does not change in the original database.
What is the importance of aliases?
Aliases provide database administrators, as well as other database users, with the ability to reduce the amount of code required for a query, and to make queries simpler to understand. In addition, aliasing can be used as an obfuscation technique to protect the real names of database fields.