select emp_no, count(emp_no) t
from salaries
group by emp_no
having t>15

考察having的用法。group by 要筛选聚合后的数据需要使用having