Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

group by

SELECT
  <column_name>,
  COUNT(<column_name>) AS `value_occurrence` 

FROM
  <my_table>

GROUP BY 
  <column_name>

ORDER BY 
  `value_occurrence` DESC

LIMIT 1;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #group
ADD COMMENT
Topic
Name
8+8 =