Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/01/2008, 03:18
seyko
 
Fecha de Ingreso: febrero-2007
Mensajes: 1.292
Antigüedad: 17 años, 3 meses
Puntos: 13
Re: count de un distinct

Buenas,

select texto, tt from (
Select texto, count(texto) as tt from busca GROUP BY texto ORDER BY count(texto) DESC LIMIT 10
) foo
order by texto

Un saludo