Complete the code to select the current date using a built-in SQL function.
SELECT [1];The CURRENT_DATE function returns the current date in SQL.
Complete the code to count the number of rows in the 'employees' table using a built-in function.
SELECT [1](*) FROM employees;The COUNT(*) function counts all rows in a table.
Fix the error in the code to convert the 'name' column to uppercase using a built-in function.
SELECT [1](name) FROM users;The UPPER() function converts text to uppercase in SQL.
Fill both blanks to select the average salary and round it to 2 decimal places.
SELECT ROUND(AVG([1]), [2]) FROM employees;
Use AVG(salary) to get the average salary and ROUND(..., 2) to round to 2 decimals.
Fill all three blanks to select the maximum age, minimum age, and calculate the age difference in the 'people' table.
SELECT MAX([1]) AS max_age, MIN([2]) AS min_age, MAX(age) - MIN([3]) AS age_diff FROM people;
Use age column for MAX and MIN functions to find max and min age, then subtract to get difference.