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
total salaries = SUM(salary); more than 2 employees refers to HAVING COUNT(*) > 2; each department is indicated by GROUP BY department_id; department id refers to department_id;