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