Mode Average Function

C

Chris Sheppard

All,

I am using Access 97 and want to find the MODE of a group
of records for (in this case) delivery time. I already
can obtain the mean using the Avg function.

Is there something simliar, or a technique, that I can use
to obtain the Mode for the records?

TIA,

Chris
 
J

John Nurick

Hi Chris,

Try something like

SELECT TOP 1 DeliveryTime, Count(DeliveryTime) AS Instances
FROM MyTable
GROUP BY DeliveryTime
ORDER BY Count(DeliveryTime) DESC;
 

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