Ver Mensaje Individual
  #18  
Antiguo 08-10-2011
Avatar de Sapt_86
Sapt_86 Sapt_86 is offline
Registrado
NULL
 
Registrado: oct 2011
Ubicación: Bahia Blanca, Argentina
Posts: 8
Reputación: 0
Sapt_86 Va por buen camino
Donde realizas la suma, intenta lo siguiente:

Código SQL [-]
SELECT CAST(SUM(T1.TOTAL) AS DECIMAL(10,2))AS TOTALP
FROM DETALLE_VENTAS T1, FACTURAS_DE_VENTAS T2 
WHERE T1.ID_FAC_V = T2.ID_FAC_V

De todas formas ten cuidado con el redondeo.
Responder Con Cita