PERDON ERRORES DE COPY PASTE
Código SQL:
Ver originalSELECT SUBSTRING(TB1.PRODUCTO,1,4),TB1.NOMBRE,SUM(TB1.VALORUNIT),SUM(TB1.CANTIDAD),TB1.UNDVENTA,TB1.IVA, 0 AS 'ORDIMP'
FROM MVTRADE AS TB1 JOIN MTMERCIA AS TB2 ON TB1.PRODUCTO = TB2.CODIGO
WHERE TB1.PRODUCTO IN ('2600','2600A') AND
TB1.ORIGEN = 'FAC' AND
TB1.TIPODCTO = 'FS' AND
TB1.NroDcto='7332'
GROUP BY SUBSTRING(TB1.PRODUCTO,1,4),NOMBRE,UNDVENTA,TB1.IVA, 0