how to count the total salary which based on Deptname wise.
i have 50rows with empid,empname,deptname,salary.
i want to count the total salary dept wise.
please help me,
Thanks in advance.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Ranjit PowarRank #553 · 4.4K reputationPosted Dec 18, 2015, 6:38 PM EST
Employee group by deptname
If problem soved, mark it as correct answer.
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 18, 2015, 6:47 PM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Dec 18, 2015, 6:59 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 18, 2015, 7:38 PM EST
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 18, 2015, 7:56 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 18, 2015, 7:58 PM EST
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 18, 2015, 8:00 PM EST
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 18, 2015, 8:37 PM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Dec 18, 2015, 9:25 PM EST
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 18, 2015, 9:40 PM EST
Rajeesh MenothRank #118 · 18.4K reputationPosted Dec 18, 2015, 9:41 PM EST
- SELECT department_id, SUM(salary)
- FROM employees
- GROUP BY department_id;
More Reference :Ranjit PowarRank #553 · 4.4K reputationPosted Dec 18, 2015, 9:43 PM EST
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 18, 2015, 9:48 PM EST
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 18, 2015, 9:50 PM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Dec 19, 2015, 2:44 AM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Dec 19, 2015, 2:55 AM EST
Pavan BujjiRank #9,604 · 204 reputationPosted Dec 20, 2015, 8:49 PM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Dec 20, 2015, 9:16 PM EST