J
JIM.H.
Hello,
I have tables:
Table1: ID, qty
Table2: ID, QtyMax
Now I need to create a new table Table3: ID, qtyOrder
qtyOrder for first ID should be calculated as "QtyMax-
qty", then second ID will have value "QtyMax-qty-qty" I
need to do this for all items in Table1 If the result goes
to negative, qtyOrder for the rest of ID should be set to
zero.
How can I do this?
Thanks,
Jim.
I have tables:
Table1: ID, qty
Table2: ID, QtyMax
Now I need to create a new table Table3: ID, qtyOrder
qtyOrder for first ID should be calculated as "QtyMax-
qty", then second ID will have value "QtyMax-qty-qty" I
need to do this for all items in Table1 If the result goes
to negative, qtyOrder for the rest of ID should be set to
zero.
How can I do this?
Thanks,
Jim.