What is Aliases in SQL?

  By Rizwan Saqib   Posted on March-28-2018   832

MS Sql Server


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 the query.

Queries & Examples


Select (age) As TotalAge

From users_tbl;

Temporary changed the name of column is aliases

In thiis Querey [Total Age ] is a Temporary Name of  Age Column When we Execute the Query It show the Column name  [Total Age ]

By  Rizwansaqib966    28-Mar-2018 Views  832

You may also read following recent Post

Submit Post - Article - Ask a Question - Ask an Interview Question - Submit Useful Links