Answers for "sql select most frequent value in group"

SQL
0

sql select most frequent value in group

SELECT col, COUNT(col) AS value_occurrence
FROM m_table GROUP BY col ORDER BY value_occurrence DESC;
Posted by: Guest on May-19-2021

Code answers related to "sql select most frequent value in group"

Code answers related to "SQL"

Browse Popular Code Answers by Language