SELECT department_id ,  SUM(salary) FROM employees GROUP BY department_id HAVING count(*)  >=  2
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
select department_id , sum ( salary ) from employees group by department_id having count ( * ) > = value
What are total salaries and department id for each department that has more than 2 employees ?