Ver Mensaje Individual
  #8 (permalink)  
Antiguo 31/08/2010, 12:51
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Respuesta: Sumar y restar numeros con PHP

Sólo agregar otra columna.

select ... (qty_on_hand - qty_allocated) as total1,
(qty_on_hand + qty_on_ord - qty_allocated) as total2
from ...