Google News
logo
SQL - Interview Questions
Write an SQL query to fetch departments along with the total salaries paid for each of them.
The required query is:
 
SELECT DEPARTMENT, sum(Salary) from worker group by DEPARTMENT;
Advertisement