Skip to content

AS

SELECT firstname AS Name, age AS Age FROM users;
NameAge
Peter23
John30
Jane25

In the given SQL query, “AS” is used to rename the columns in the output. The column “firstname” is displayed as “Name” and the column “age” as “Age”.