Complete the code to count all rows in the employees table.
SELECT [1](*) FROM employees;The COUNT function counts the number of rows in a table or group.
Complete the code to find the total salary from the salaries table.
SELECT [1](salary) FROM salaries;The SUM function adds all values in a column.
Fix the error in the code to find the average age from the people table.
SELECT [1](age) FROM people;The AVG function calculates the average value of a column.
Fill both blanks to find the maximum and minimum prices from the products table.
SELECT [1](price) AS max_price, [2](price) AS min_price FROM products;
MAX finds the highest value, and MIN finds the lowest value in a column.
Fill all three blanks to create a query that counts employees, sums their salaries, and finds the average age.
SELECT [1](*) AS total_employees, [2](salary) AS total_salary, [3](age) AS average_age FROM employees;
This query uses COUNT to count employees, SUM to add salaries, and AVG to find average age.
