SQL - GROUP BY and HAVING
Which SQL query correctly groups employees by their
department_id and counts the number of employees in each department?department_id and counts the number of employees in each department?department_id to count employees per department.COUNT(*) counts all rows in each group, which is appropriate here.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions