Skip to content

Instantly share code, notes, and snippets.

@cavebatsofware
Created October 22, 2013 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cavebatsofware/7102822 to your computer and use it in GitHub Desktop.
Save cavebatsofware/7102822 to your computer and use it in GitHub Desktop.
FIX ORDER PACK RECORDS
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