Ver Mensaje Individual
  #6 (permalink)  
Antiguo 03/03/2016, 11:17
Housbel
 
Fecha de Ingreso: febrero-2016
Ubicación: Costa Rica
Mensajes: 17
Antigüedad: 8 años, 2 meses
Puntos: 0
Respuesta: Consulta sobre suma

Cita:
Iniciado por Libras Ver Mensaje
Prueba con esto :)

Código MySQL:
Ver original
  1. select max(total), day(idfechafactura) from(
  2. Select sum(totalproducto) as total, idfechafactura from tblfactura
  3. group by idfechafactura
  4. ) as t1 group by day(idfechafactura)
Queda igual