You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT d.name, COUNT(e.id) AS COUNT_OF_EMPLOYEES_IN_THE_DEPARTMENT
FROM department AS d
LEFT JOIN employee AS e
ON d.id = e.dept_id
GROUP BY d.name
ORDER BY COUNT_OF_EMPLOYEES_IN_THE_DEPARTMENT DESC, d.name ASC