PrepZone Logo
PrepZone
Back to Database

Database · Easy

Count employees per department, including departments with zero employees.

DatabaseSQL QueriesFresherAggregation

Answer preview

LEFT JOIN from departments and count a column from the employee side — COUNT(e.emp_id), never COUNT(*).…