Advertisement
apl-mhd

department wise salary

Aug 1st, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.21 KB | None | 0 0
  1. SELECT departments.DEPARTMENT_NAME, employees.DEPARTMENT_ID,
  2. employees.JOB_ID,SUM(SALARY)
  3. FROM employees JOIN departments ON employees.DEPARTMENT_ID = departments.DEPARTMENT_ID
  4. GROUP BY employees.DEPARTMENT_ID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement