Ver originalSELECT pr.articulo, SUM(mv.cantidad), pr.stock FROM producto as pr, movimientos as mv WHERE pr.cod_producto = mv.cod_producto AND mv.transaccion="venta" GROUP BY pr.marca, pr.articulo