select departmentid,jobid,avg(salary),count(*) from employees group by departmentid , jobid having count(*) > 1