Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/01/2011, 17:37
Avatar de jcxnet
jcxnet
 
Fecha de Ingreso: octubre-2005
Ubicación: Perú
Mensajes: 784
Antigüedad: 18 años, 7 meses
Puntos: 56
Respuesta: Ordenar por id que se repita mas

Código:
SELECT COUNT(fans.id_grupo) AS total, fans.id_grupo as grupo
FROM fans
GROUP BY fans.id_grupo
ORDER BY total DESC
__________________
►I'm a devil on the run ♂
Jcxnet.com
*Keep It Simple **