display the department id and the total salary for those departments which contains at least two 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(*)  >=  2
[{'DEPARTMENT_ID': 20, 'SUM(salary)': 19000}, {'DEPARTMENT_ID': 30, 'SUM(salary)': 24900}, {'DEPARTMENT_ID': 50, 'SUM(salary)': 156400}, {'DEPARTMENT_ID': 60, 'SUM(salary)': 28800}, {'DEPARTMENT_ID': 80, 'SUM(salary)': 304500}, {'DEPARTMENT_ID': 90, 'SUM(salary)': 58000}, {'DEPARTMENT_ID': 100, 'SUM(salary)': 51600}, {'DEPARTMENT_ID': 110, 'SUM(salary)': 20300}]