Im not sure on how to find the most, but you can find duplicates, and see which appears the most there.
In the query section, hit new > Find duplicates... that by far is the easiest way, then has it sort desc. this way the most reaccuring one it at the top.
Have you tried something like this ?
SELECT TOP 1 theField, Count(theField) AS Occurance
FROM theTable
GROUP BY theField
ORDER BY Count(theField) DESC;
Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.