Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/05/2008, 16:56
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años, 9 meses
Puntos: 2135
Re: contar y sumar "de una"

Este query no te anda:
Código:
SELECT `mes`, COUNT(*) AS 'total', SUM(`cantidad`) FROM `pedidos`GROUP BY `mes`
Pruebalo y me haces saber.

Saludos.