I have a table with three fields - stockLevel, backOorder and allocated (there are other fields but these are the inportant ones here).
Is it possible to create a SQL update query that will deduct a qty from the stockLevel if there is sufficient stock and if not deduct as much as possible and put the this amount on allocated and the remainder on backOrder?
Thanks in advance.
Is it possible to create a SQL update query that will deduct a qty from the stockLevel if there is sufficient stock and if not deduct as much as possible and put the this amount on allocated and the remainder on backOrder?
Thanks in advance.