Use Aliases on SQL Query

Use Aliases on SQL Query

Instructor-svgAl-Mamun Sarkar
Apr 15 , 2020

Use Aliases on SQL Query. The following SQL query shows how to use aliases while querying data from the database using SQL.

 

Alias Column Syntax:

SELECT column_name AS alias_name
FROM table_name;

Example:

SELECT name AS employee_name, salary AS current_salary
FROM employees; 

 

 

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram