Return to Snippet

Revision: 47770
at June 16, 2011 04:56 by serialk89


Initial Code
SELECT * , COUNT( * ) AS num
FROM wp_o0qb3z_comments
GROUP BY `comment_author_email`
ORDER BY num DESC
LIMIT 0 , 30

Initial URL


Initial Description
Seleccion los datos mas repetidos de una tabla y los ordeno por la cantidad que se repiten, sirve para seleccionar a los usuarios más activos por ejemplo, etc.

Initial Title
SELECCIONAR LOS REGISTROS MAS REPETIDOS

Initial Tags
mysql

Initial Language
MySQL