Summarizing data
I have a field in which data is entered by a combo box thereby a record can take one of the following: lion, elephant, baboon, leopard etc. Typical values for the field would be;
Lion
Lion
Elephant
Giraffe
Leopard
Lion
Etc
I need to summarize this to know the number of times each species is recorded et for the above sample I want to end up with:
Lion - 3
Elephant - 1
Giraffe - 1
Leopard - 1
While I have managed to do for a single species by creating a query whose SQL looks like this,
SELECT Count(Mytable.Field) AS Animalcount
FROM Mytable
WHERE Mytable.Field="elephant";
I wonder if its possible to have one query that summarizes all species at once since it would be tedious to do a query for each species.
I have a field in which data is entered by a combo box thereby a record can take one of the following: lion, elephant, baboon, leopard etc. Typical values for the field would be;
Lion
Lion
Elephant
Giraffe
Leopard
Lion
Etc
I need to summarize this to know the number of times each species is recorded et for the above sample I want to end up with:
Lion - 3
Elephant - 1
Giraffe - 1
Leopard - 1
While I have managed to do for a single species by creating a query whose SQL looks like this,
SELECT Count(Mytable.Field) AS Animalcount
FROM Mytable
WHERE Mytable.Field="elephant";
I wonder if its possible to have one query that summarizes all species at once since it would be tedious to do a query for each species.