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 employees table.
SELECT [1](salary) FROM employees;The SUM function adds all values in a column, here it adds all salaries.
Fix the error in the code to get the average age from the users table.
SELECT [1](age) FROM users;The AVG function calculates the average value of a column.
Fill both blanks to find the minimum and maximum price from the products table.
SELECT [1](price) AS min_price, [2](price) AS max_price FROM products;
MIN finds the smallest value, and MAX finds the largest value in a column.
Fill all three blanks to get the count of orders, total amount, and average amount from the orders table.
SELECT [1](*) AS total_orders, [2](amount) AS total_amount, [3](amount) AS average_amount FROM orders;
COUNT(*) counts all orders, SUM(amount) adds all amounts, and AVG(amount) calculates the average amount.