Counting number of occurences in a field

M

Michael

I have a field called "Classification" in a table. The
possible responses are "CA" or "CN". I would like to use
a query to count the number of times CA appears in the
field and the number of times CN appears in the field.

I would like to use a query to do this. Any tips?
 
B

Brian Camire

You might try a query whose SQL looks something like this:

SELECT
[Your Table].[Classification],
Count(*) AS [Occurences]
FROM
[Your Table]
GROUP BY
[Your Table].[Classification]
 

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