I have a derived Table from two different tables using count and group by functions for which the output is like this.
Department DeptID Count(noofemployees)
HR 1 60
Accounting 19 7
Computers 4 67
Sys admin 6 5
Finance 3 15
Admin 9 12
Now I am trying to add and display
HR + Accounting + Finance = 10 + 7 + 13 = 30 as HR
Computers + Sys admin = 65 + 5 =70 as Computers
Department DeptID Count(noofemployees)
HR 1 30
Computers 4 70
Admin 9 12
Can you please help out on this.
I have found the answer to this ,
I could not call the Department name on this but can just show the sum of
COUNT(Noofemployees), since we cannot group bywe can use
this will give me an output:
Not Quite the output I am looking for, but helps for now.
If anyone can help me getting the output I am looking for that would great.
Thank you