Column Aliases with AS
AS lets you rename columns in your query output.
Instead of showing the raw column name, give it a friendly label:
The result columns will show "name" and "pay" instead of "first_name" and "salary".
You can also alias expressions:
Aliases make your results cleaner and easier to read, especially in reports and dashboards.
Check your understanding
Which query renames a column?
Examples run on the employees sample database. Open any of them in the playground to experiment.