0% found this document useful (0 votes)
45 views2 pages

Status

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.

Uploaded by

jishan82
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views2 pages

Status

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.

Uploaded by

jishan82
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

SELECT CON.CONTAINER_ID,CI.DISTRO_NBR,SUM(CI.UNIT_QTY),con.container_status,con.

load_ts FROM CONTAINER CON,CONTAINER_ITEM CI


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


ATION_ID,ITEM_ID;

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy