Which SQL query retrieves the number of employees in each department?
Q1. Which SQL query retrieves the number of employees in each department?
Answer: SELECT department, COUNT(*) FROM employees GROUP BY department
Explanation: The SQL query 'SELECT department, COUNT(*) FROM employees GROUP BY department' retrieves the number of employees in each department, using the COUNT aggregate function and GROUP BY clause.