What are total salaries and department id for each department that has more than 2 employees?
select department_id, sum(salary) from employees group by department_id having count(*) >= 2