Totalling rows in a query

G

Guest

I have a query and all I want is total of rows per each department in the
hospital. I have tried setting up a table to make the departments numeric
but still cannot get the total function to count all the 1s and then all the
2s and show me how many of each there are.
 
G

Guest

Try this --
SELECT AlisonD.Department, Count(AlisonD.Department) AS [Department Count]
FROM AlisonD
GROUP BY AlisonD.Department;
 

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

Top