Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/09/2005, 02:23
Avatar de Jose_minglein2
Jose_minglein2
 
Fecha de Ingreso: noviembre-2004
Mensajes: 2.344
Antigüedad: 19 años, 5 meses
Puntos: 8
Código:
 select country, count(provider_id)as total
from provider group by country order by total DESC Limit 5 
UNION
Select 'otros' as country, count(provider_id) as total from provider where provider_id not in (select provider_id
from provider group by country order by total DESC Limit 5 )
Espero que te sirva