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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top