Backboards: 
Posts: 157
In response to "SQL question: is there a function that finds the [item] that shows up the most in a query?" by JaxSean

SELECT lastname, COUNT(name) as freq FROM table GROUP BY lastname ORDER BY freq ASC. Then take the first result. -- nm

(No message)


Responses:
Post a message   top
Replies are disabled on threads older than 7 days.