Sql query..... Sum of another aggragate function

  • Thread starter Thread starter Coool.Net
  • Start date Start date
C

Coool.Net

SELECT Category, COUNT(Labour_ID) AS LabourCount FROM
HR_Labours
WHERE (Absconded = '0') AND (VisaCancelled = '0') AND (OnLeave =
'0') AND (Terminated = '0')
GROUP BY Category




here i reading count of labours under this criteria .... as lzbour
count ..for each category...but
i need the total count means SUM of labourcout[LabourCount ] ...

i can i write this as SUM(count(Labour_ID))
or ho i will get the sum...
plz help me
 
Back
Top