Question: Write an Sql query that returns department that hire atleast one employee, the number of people they employ and sum of salaries in each department

Write an Sql query that returns department that hire atleast one employee, the number of people they employ and sum of salaries in each department department dept_id dept_name dept_location 10 DI India 20 CAD India 40 REPA Singapore 30 UA China 50 IT Australia employee 30/ 401 emp_id emp_name dept_id salary 1 Max 201 50001 2 Jane 150001 3 Elle 25000 4 KC 201 7500 5 Arun 20 15000 6 KK 10 12000 7 Bob 201 35000 8 Meera 30 25000 9 Jim 40 5000 Query output dept_id count sum_of_salary 10 12000 62500 40000 30000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
