This SQL query selects the container ID, distribution number, total unit quantity, container status, and load timestamp from the CONTAINER and CONTAINER_ITEM tables where the container ID matches and the distribution number is in a list, grouping the results by container ID, distribution number, status, and timestamp.
This SQL query selects the container ID, distribution number, total unit quantity, container status, and load timestamp from the CONTAINER and CONTAINER_ITEM tables where the container ID matches and the distribution number is in a list, grouping the results by container ID, distribution number, status, and timestamp.
This SQL query selects the container ID, distribution number, total unit quantity, container status, and load timestamp from the CONTAINER and CONTAINER_ITEM tables where the container ID matches and the distribution number is in a list, grouping the results by container ID, distribution number, status, and timestamp.
This SQL query selects the container ID, distribution number, total unit quantity, container status, and load timestamp from the CONTAINER and CONTAINER_ITEM tables where the container ID matches and the distribution number is in a list, grouping the results by container ID, distribution number, status, and timestamp.
WHERE CON.CONTAINER_ID = CI.CONTAINER_ID GROUP BY CON.CONTAINER_ID,CI.DISTRO_NBR,con.container_status,con.load_ts HAVING CI.DISTRO_NBR IN ('9900448823'); select sa.distro_nbr,sa.item_id,substr((im.description),1,15) Description,so.pic k_not_before_date,so.action_ts,so.order_uda9,sa.RETAIL_PRICE,sa.requested_unit_q ty,sa.distributed_unit_qty,sa.wave_nbr from stock_allocation sa,stock_order so,item_master im Where Sa.Facility_Id = So.Facility_Id And Sa.Distro_Nbr = So.Distro_Nbr And S a.Item_Id = Im.Item_Id And So.Facility_Id = Im.Facility_Id -- and sa.REQUESTED_UNIT_QTY <> sa.DISTRIBUTED_UNIT_QTY; And Sa.Distro_Nbr In (9900688027,9900701921,9900701917); --and sa.RETAIL_PRICE <= 0 ; --AND DISTRIBUTED_UNIT_QTY = 0 --and sa.item_id in ('154079147'); and im.description like '%IPHONE 5%'; select * from item_master where item_id='156211206'; SELECT * FROM PICK_FROM_LOC WHERE ITEM_ID IN (SELECT ITEM_ID FROM STOCK_ALLOCATI ON WHERE DISTRO_NBR IN ('9900468048')); select * from stock_allocation where item_id <> '154503923' and distro_nbr = '99 00448185'; select distro_nbr,order_uda9 from stock_order where distro_nbr in (9900452084,99 00452430,9900452620,9900452628,9900453183,9900453484,9900453509); --------------------------------------------SELECT stock.ITEMNO ITEMNO, sum(nvl(stock.STOCK,0)) AVALIABLESTOCK FROM(SELECT soh.item ITEMNO, soh.loc LOC, ((GREATEST(SOH.STOCK_ON_HAND, 0) + nvl(soh.PACK_COMP_SOH,0) + nvl(soh. PACK_COMP_EXP,0)) - (nvl(soh.RTV_QTY,0) + nvl(soh.TSF_RESERVED_QTY,0) + nvl(soh.PACK_C OMP_RESV,0) + GREATEST(SOH.NON_SELLABLE_QTY, 0) + nvl(soh.CUSTOMER_RESV,0) + nvl (soh.CUSTOMER_BACKORDER,0) + nvl(soh.PACK_COMP_CUST_RESV,0) + nvl(soh.PACK_COMP_CUST_BAC K,0)) ) STOCK FROM item_loc_soh soh WHERE exists (select 'X' from item_loc iloc where iloc.loc= 88888 and iloc.item=soh.item) AND exists (select 'X' from loc_list_detail where loc_list= 1507 and location=soh.loc)) stock GROUP BY stock.itemno ORDER BY 1; ----------------------------------------------DESC lm_stock_order; select * from loc_list_detail where loc_list= 1507; select LOCATION_ID,item_id, sum(unit_qty) from pick_from_loc where location_id i n
( select location_id from location where CYCLE_COUNT_STATUS = 'MM') GROUP BY LOC