Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql find most common value

SELECT column, COUNT(*) AS magnitude 
FROM table 
GROUP BY column 
ORDER BY magnitude DESC
LIMIT 1
 
PREVIOUS NEXT
Tagged: #mysql #find #common
ADD COMMENT
Topic
Name
2+5 =