Extracting data of different Depts from a table

A

Azhar Qureshi

Hello. I have a table containing recds from 4 different depts say A B C and
D. I want to count the total records for each dept individually. Can i use a
query which returns A has 4 records B has 7 recds and so on.
 
V

vanderghast

Sure.

In SQL view, try:

SELECT dept, COUNT(*)
FROM tableNameHere
GROUP BY dept


where dept has to be changed by the real name for you field.


Vanderghast, Access MVP
 

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