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
department id refers to department_id; total salary refers to SUM(salary); departments which contains at least two employees refers to HAVING COUNT(*) >= 2;