Answers for "Find most frequent value in SQL column"

SQL
0

Find most frequent value in SQL column

SELECT       `column`,
             COUNT(`column`) AS `value_occurrence` 
    FROM     `my_table`
    GROUP BY `column`
    ORDER BY `value_occurrence` DESC
    LIMIT    1;
Posted by: Guest on September-21-2020

Code answers related to "Find most frequent value in SQL column"

Code answers related to "SQL"

Browse Popular Code Answers by Language