List of public pages created with Protopage

Untitled 3

Rich sticky notes

화주대불금 정산시 기준

1. 당월발생하느 업체는 농심.. . 당월 화주대불금 정산해라

 

Sticky note

Sandblaster

 

etching glass

Sticky note

Untitled 4

Rich sticky notes

금복주

1. 2단계 동만사는.. 업체가 직접 운송한다. .

 

전산data

1. 직송은 areadirect

2. 업직은 areadirect  구분자 Y

Untitled 5

Web widgets

Web page

Untitled 6

Rich sticky notes

케이티엔지

SELECT   WHCD || ' ' || ' ' || SUBSTR(TMS.GETWHNAME_FN(WHCD),4,30) AS BRANCH,
         custcd,
   max(custnm),
   sku,
   max(skunm),
         sum(einqty),
         SUM(INQTY),
         (SELECT NVL(SUM(OUTQTY),0) FROM prd_army.TB_OUT02  WHERE DELIVERYDATE LIKE :ARG_DATE||'%' AND STATUS = '9' AND SKU = TB_IN02.SKU
   AND WHCD = TB_IN02.WHCD) AS OUTQTY,
   SUM(INQTY)-(SELECT NVL(SUM(OUTQTY),0) FROM prd_army.TB_OUT02  WHERE DELIVERYDATE LIKE :ARG_DATE||'%' AND STATUS = '9' AND SKU = TB_IN02.SKU
   AND WHCD = TB_IN02.WHCD) AS 차이
         FROM prd_army.TB_IN02
WHERE DELIVERYDATE LIKE :ARG_DATE||'%'
          AND EXISTS (SELECT WHCD, sku FROM prd_army.TB_OUT02 WHERE SKU = TB_IN02.SKU AND WHCD = TB_IN02.WHCD )
    and custcd='615'
          GROUP BY WHCD, custcd, sku
          ORDER BY WHCD desc;
   
   
SELECT MAX(B.FRTROOPDESCR), MAX(B.TOTROOPDESCR), A.ORDERNO, A.SKU, MAX(A.SKUNM), SUM(A.OUTQTY)  FROM PRD_ARMY.TB_OUT02 A, PRD_ARMY.TB_OUT01 B
WHERE  A.CUSTCD = '615' AND A.STATUS = '9' AND A.DELIVERYDATE LIKE '200604%' AND A.ORDERNO = B.ORDERNO
GROUP BY A.ORDERNO, A.SKU

 

SELECT   WHCD || ' ' || ' ' || SUBSTR(TMS.GETWHNAME_FN(WHCD),4,30) AS BRANCH,
         custcd,
   max(custnm),
   sku,
   max(skunm),
         sum(einqty),
         SUM(INQTY),
         (SELECT NVL(SUM(OUTQTY),0) FROM prd_army.TB_OUT02  WHERE DELIVERYDATE LIKE :ARG_DATE||'%' AND STATUS = '9' AND SKU = TB_IN02.SKU
    AND WHCD = TB_IN02.WHCD) AS OUTQTY
          FROM prd_army.TB_IN02
WHERE DELIVERYDATE LIKE :ARG_DATE||'%'
          AND EXISTS (SELECT WHCD, sku FROM prd_army.TB_in02  WHERE SKU = TB_IN02.SKU AND WHCD = TB_IN02.WHCD )
          GROUP BY WHCD, custcd, sku
          ORDER BY sku desc;
   

Untitled 7

Rich sticky notes

3월결산기현덕일쿼리

select B_YMD,B_CUST,B_CUST_NM,B_SKU,B_SKU_NM,B_UNIT,sum(b_ipgo),sum(b_banpum) from wh8.jaesan_b
where b_ymd like '200603'
and b_j_code in('3029900','3049900','3129900','3149900')
group by B_YMD,B_CUST,B_CUST_NM,B_SKU,B_SKU_NM,B_UNIT 

월결산시 차이

SELECT   PRT_COMPANY,   MAX(PRT_YYMM),  PRT_SA,          
                   max(PRT_SA_NAME), 
                SUM(PRT_U_GUM),  SUM(PRT_GUM) AS NAPUM_GUM,
                SUM(PRT_WORK_GUM),
                SUM(PRT_2_GUM),
                SUM(PRT_SU) AS IPGO_BOX_SU                     
            FROM   TMS.TMS_REPORT_02                       
           WHERE   PRT_COMPANY IN   ('U', '1') 
AND   PRT_YYMM    =   '200603' AND PRT_WH_CD <> '98'  AND PRT_2_GUM <> 0
        GROUP BY   PRT_COMPANY,  PRT_SA
        ORDER BY   PRT_SA;


SELECT    ORDER_SA, MAX(ORDER_SA_NAME),SUM(ORDER_SU), SUM(ORDER_GUM3), SUM(ORDER_GUM4)
   FROM    TMS.TMS_ORDER
   WHERE   ORDER_J_DATE LIKE  '200603%' 
          AND   ORDER_WH_CD  = 'WH1' --AND  ORDER_SA NOT IN ('249','288','503','564','B32','C75','C76','629') 
        AND   (ORDER_OK  IN  ('Y', 'Z') OR (ORDER_GB2  = '3' AND ORDER_OK  = 'S') OR (ORDER_NO LIKE '%Y%' AND ORDER_OK = 'S')) AND ORDER_GUM3 <> 0
    GROUP BY ORDER_SA
          ORDER BY ORDER_SA

Sticky note

SELECT   INTERFACESEQ, DELIVERYDATE, cinvoice, FLAG, VENDOR, VENDORDESCR, SKU , SKUDESCR,
             SUM(RECEIVEDBOXCNT), SUM(SHIPPEDBOXCNT) , SUM(RECEIVEDBOXCNT)- SUM(SHIPPEDBOXCNT) AS RESULT
    FROM     TDS.TDSCENTERDATA WHERE DELIVERYDATE LIKE '200510%' AND VENDOR IN( '327') 
GROUP BY INTERFACESEQ, DELIVERYDATE, FLAG, cinvoice, VENDOR, VENDORDESCR, SKU , SKUDESCR ORDER BY FLAG, cinvoice, SKU
드리프트제왕 님의 말:
먼 저   위 쿼리에 업체코드 넣어서 차이 확인하고
드리프트제왕 님의 말:
이상한거   CINVOICE 를 골라서
SELECT * FROM TDS.TDSCENTERDATA WHERE cinvoice = '200510250016WH15' AND VENDOR = 'B97'
위 쿼리에  넣어서 확인   끝~~~~~~~
미리 말하지만 4개업체는 반영 안된거 알고계시라고요