Question

What is the result of the following SQL query?  SELECT department, COUNT (employee_id)  FROM employees GROUPBY department HAVING COUNT (employee_id) > 5 ;

A Displays all employees whose department has more than 5 entries in the database.
B Returns an error because HAVING cannot be used with aggregate functions.
C Displays department names with more than 5 employees and their counts.
D Returns all employees along with their respective department and count.
E Counts the number of employees in each department but does not filter any results.
Practice Next

Hey! Ask a query