SQL - GROUP BY and HAVING
You wrote this query:
but it returns no rows for NULL departments. How can you fix it to include NULL group counts?
SELECT Department, COUNT(*) FROM Employees GROUP BY Department HAVING Department IS NOT NULL;but it returns no rows for NULL departments. How can you fix it to include NULL group counts?
