0
我有一個派生的表從兩個不同的表使用計數和按功能分組的輸出是這樣的。我有兩行不同的id's.I想要添加兩行並將其顯示爲一個
Department DeptID Count(noofemployees)
HR 1 60
Accounting 19 7
Computers 4 67
Sys admin 6 5
Finance 3 15
Admin 9 12
現在我想添加和顯示
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
能否請您幫幫忙這一點。