Problem Statement
What is the main purpose of using column or table aliases in a SELECT statement?
Explanation
Aliases are temporary names for columns or tables in a single query. They improve readability and help when the same table is referenced twice.
They do not change schema or metadata; they exist only during the statement.
Code Solution
SolutionRead Only
SELECT e.id AS emp_id, d.name AS dept FROM employees e JOIN departments d ON d.id = e.dept_id;
