Created
October 22, 2013 15:32
-
-
Save cavebatsofware/7102822 to your computer and use it in GitHub Desktop.
FIX ORDER PACK RECORDS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
insert into | |
order_pickpack (order_id, product_id, container_id, quantity) | |
select | |
'101813.2886', product_id, container_id, allocated | |
from | |
inventory_history | |
where | |
transaction_id = 9450767; | |
update order_inventory | |
set | |
order_inventory.container_id = (select | |
order_pickpack.container_id | |
from | |
order_pickpack | |
where | |
order_pickpack.order_id = '101813.2886' | |
and order_pickpack.product_id = order_inventory.product_id) | |
where | |
order_inventory.order_id = '101813.2886'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment