Ver Mensaje Individual
  #3  
Antiguo 02-06-2006
Avatar de lucasarts_18
lucasarts_18 lucasarts_18 is offline
Miembro
 
Registrado: mar 2005
Ubicación: Villa Alemana,Chile
Posts: 1.087
Reputación: 21
lucasarts_18 Va por buen camino
Hola:

Intenta con un código SQL así..
Código SQL [-]
select (sum(tc.cantidad) ) -  (sum(tv.cantidad)) as calculo,
tc.codproducto
from tablaCpras tc, 
tablaVtas tv
where tc.codproducto = tv.codproducto
group by tc.codproducto

Hasta Luego -
__________________
No todo es como parece ser...
Responder Con Cita