SELECT COUNT(*) FROM employees;
SELECT COUNT(*) FROM employees WHERE department_id = 6;
SELECT COUNT(*) FROM employees WHERE job_id = 9;
SELECT department_id, COUNT(*) FROM employees GROUP BY department_id;
SELECT e.department_id, department_name, COUNT(*) FROM employees e INNER JOIN departments d ON d.department_id = e.department_id GROUP BY e.department_id;
SELECT e.department_id, department_name, COUNT(*) FROM employees e INNER JOIN departments d ON d.department_id = e.department_id GROUP BY e.department_id ORDER BY COUNT(*) DESC;
SELECT e.department_id, department_name, COUNT(*) FROM employees e INNER JOIN departments d ON d.department_id = e.department_id GROUP BY e.department_id HAVING COUNT(*) > 5 ORDER BY COUNT(*) DESC;
SELECT COUNT(job_id) FROM employees;
SELECT COUNT(DISTINCT manager_id) FROM employees;