Ver Mensaje Individual
  #14 (permalink)  
Antiguo 23/09/2005, 12:26
Avatar de ADIÓS_ADRIANA
ADIÓS_ADRIANA
 
Fecha de Ingreso: septiembre-2005
Mensajes: 263
Antigüedad: 18 años, 8 meses
Puntos: 0
Cita:
Iniciado por Linterns
prueba con lo siguiente

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 not EXISTS (select country
from provider group by country order by count(provider_id) DESC Limit 5))

Gracias pero no funciona:

Código PHP:
Executing QueryWait ...
MySQL ERROR:

Invalido uso de función en grupo