Counting Question....

J

Jeff Uchtman

Access database. What is the best method to count a field that has the
numbers 1 - 93 in it, over 1008000 rows long. Trying to obtain how many
times 1, 2, 3 etc show up in this field.

Thanks
Jeff
 
B

Bob Barrows

Jeff said:
Got it, thanks anyway

Jeff
Just in case:
You decided to use a grouping query with the Count(*) aggregate function,
right? You didn't bring all the records to the client and loop through them,
did you ...?

Bob Barrows
 
J

Jeff Uchtman

Yes, its going to MS-SQL. Did it by doing:
SELECT [Locality_Code], Count(*) AS Total
FROM Voters
GROUP BY [Locality_Code];
Thanks
Jeff
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top