Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/06/2009, 06:36
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años, 1 mes
Puntos: 360
Respuesta: Como realizar la "media" de una media ?

Pruebalo así:

Código mysql:
Ver original
  1. select avg(v.prom) from (select avg(ventas) prom from tabla group by campo)v;

Un saludo.
__________________
Without data, You are another person with an opinion.
W. Edwads Deming