an update query

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top