Complete the code to rename the column 'name' as 'employee_name'.
SELECT name [1] employee_name FROM employees;In SQL, AS is used to give a column a new name (alias) in the result.
Complete the code to rename the column 'salary' as 'monthly_salary'.
SELECT salary [1] monthly_salary FROM payroll;The AS keyword is used to assign an alias to a column in SQL queries.
Fix the error in the code to correctly alias the column 'age' as 'user_age'.
SELECT age [1] user_age FROM users;The correct keyword to alias a column is AS. Using other words causes syntax errors.
Fill both blanks to rename 'price' as 'item_price' and 'quantity' as 'item_quantity'.
SELECT price [1] item_price, quantity [2] item_quantity FROM inventory;
Use AS to alias both columns correctly in the SELECT statement.
Fill all three blanks to rename 'first_name' as 'fname', 'last_name' as 'lname', and 'dob' as 'birth_date'.
SELECT first_name [1] fname, last_name [2] lname, dob [3] birth_date FROM people;
The AS keyword is used for all column aliases in this query.
