SELECT emp_no, COUNT(salary) as t from salaries GROUP BY emp_no HAVING t > 15;
where 在分组前过滤。
having 在分组后过滤。