MySQL_GroupBy_Having_Practice_Complete
MySQL_GroupBy_Having_Practice_Complete
-- 9. Retrieve offices where the average employee number is greater than 500.
Page 1
MySQL GROUP BY & HAVING - Practice Questions & Answers
-- 11. Find the highest and lowest employee count per office.
-- 13. Count employees per job title but exclude those with fewer than 2 employees.
SELECT jobTitle, COUNT(*) FROM employees GROUP BY jobTitle HAVING COUNT(*) > 1;
-- 14. Find employees who work in offices with an average employee number greater than
700.
Page 2