Complete the code to count the number of employees in the table.
SELECT COUNT([1]) FROM employees;The COUNT(*) function counts all rows in the table, summarizing the total number of employees.
Complete the code to find the average salary of employees.
SELECT AVG([1]) FROM employees;The AVG(salary) function calculates the average salary, summarizing the salary data.
Fix the error in the code to get the total salary paid to employees.
SELECT [1](salary) FROM employees;The SUM(salary) function adds all salaries together, summarizing total payment.
Fill both blanks to find the maximum and minimum salaries.
SELECT [1](salary) AS max_salary, [2](salary) AS min_salary FROM employees;
MAX(salary) finds the highest salary, and MIN(salary) finds the lowest salary, summarizing salary range.
Fill all three blanks to get the count, average, and total salary for employees.
SELECT [1](*) AS total_employees, [2](salary) AS average_salary, [3](salary) AS total_salary FROM employees;
This query counts employees, calculates average salary, and sums total salary, summarizing key data points.