Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/01/2010, 08:02
futbolregional
 
Fecha de Ingreso: agosto-2008
Mensajes: 71
Antigüedad: 15 años, 7 meses
Puntos: 2
Respuesta: Problema al sumar con SUM

Solucionado, por si a alguien le pueder interesar, lo he solucionado con SUM(DISTINCT numeroFactura)

Asi queda el codigo

Código MySQL:
Ver original
  1. $sqlTotal="SELECT SUM(DISTINCT totalFactura) AS resultado  FROM deporte.factura WHERE proceso='facturado' AND ano=".$_GET['ano']." AND mes='".$_GET['mes']."'";

gracias y hasta otra..... PORQUE SEGURO QUE HABRÁ OTRA