counting letters

D

Dave Lomax

How do I use a query to count the amount of incidences of
a single letter or sequence of letters in a field?

for instance if I have 1000 entries in a field, each entry
comprising either an 'a', 'b', 'c', or 'd'. How do I count
how many of each letter there are?

Alternatively can I plot a graph based on the same thing
using a wizard?

Many Thanks

Dave Lomax
 
L

Lynn Trapp

Select YourField, Count(YourField) AS CountOfLetters
From YourTable
Group By YourField;
 

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