请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
ZAW(uid:83135)
职业资格认证:尚未取得认证
  • SQL("PM4", "select sum(TOTAL) from BMS_SA_DTLQRY_V where to_char(CREDATE,'yyyy-mm')= '" +M2+ "' AND PRODAREA = '"+D2+ "' AND PROVINCENAME='"+E2+"' AND CITYNAME='"+F2+"'" , 1, 1)
  • 比如 SAFETYSTOCK*0.9<QTY<SAFETYSTOCK*1.1  在QTY这个值范围之内 为 1 如果大于2 小于 3SELECT s.FNUMBER,s.SAFETYSTOCK,y.QTYFROM MC_INVENTORY_SECURITY s left join MC_INVENTORY_QTY y on y.ITEMCODE=s.FNUMBER
  • SELECT nvl(sum(t.QUANTITY),0) as QUANTITY,t.INSPSTATUSNAME,nvl(t1.QUANTITYt,0),t.INSPSTATUS,TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'yyyy-mm') as tdata, case t.INSPSTATUS when 'Unqualified' then '2'                   when 'Qualified' then '1' when 'Waiting' then '3'                            else '4'          end as status,TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'mm') as month,TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'yyyy') as year,SYSDATE,nvl(t2.folt,0) as folt,nvl(t3.countfolt,0) as countfoltFROM WMS_STORAGELIST t LEFT JOIN (select    TO_CHAR(to_date(FDATE,'yyyy-mm-dd'),'yyyy-mm') as year_mon,   sum(QUANTITY) as QUANTITYt,INSPSTATUSNAME  FROM WMS_STORAGELIST  GROUP BY  TO_CHAR(to_date(FDATE,'yyyy-mm-dd'),'yyyy-mm'),INSPSTATUSNAME   )t1 on t1.INSPSTATUSNAME=t.INSPSTATUSNAME and to_char(add_months(to_date(t.FDATE,'yyyy-mm-dd'),-12),'yyyy-mm')=t1.year_mon LEFT JOIN ( select COUNT(DISTINCT FACTORYLOTNO || WORKLOTNO) as folt,INSPSTATUSNAME,TO_CHAR(to_date(FDATE,'yyyy-mm-dd'),'yyyy-mm') as year_mon2 from WMS_STORAGELIST GROUP BY INSPSTATUSNAME,TO_CHAR(to_date(FDATE,'yyyy-mm-dd'),'yyyy-mm') ) t2 on t2.INSPSTATUSNAME=t.INSPSTATUSNAME and TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'yyyy-mm')=t2.year_mon2 LEFT JOIN ( select COUNT(DISTINCT FACTORYLOTNO || WORKLOTNO) as countfolt,INSPSTATUSNAME,TO_CHAR(to_date(FDATE,'yyyy-mm-dd'),'yyyy-mm') as year_mon2 from WMS_STORAGELIST GROUP BY INSPSTATUSNAME,TO_CHAR(to_date(FDATE,'yyyy-mm-dd'),'yyyy-mm') ) t3 on t3.INSPSTATUSNAME=t.INSPSTATUSNAME and to_char(add_months(to_date(t.FDATE,'yyyy-mm-dd'),-12),'yyyy-mm')=t3.year_mon2where t.FDATE>='2021'GROUP BY t.INSPSTATUSNAME,TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'yyyy-mm'),TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'mm'),TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'yyyy') ,t1.QUANTITYt,t.INSPSTATUS,t2.folt,t3.countfoltORDER BY TO_CHAR(to_date(t.FDATE,'yyyy-mm-dd'),'yyyy-mm')
  • select sum(v.OUTQTY),to_char(v.CREDATE,'yyyy-mm-dd'),to_char(v.CREDATE,'mm'),to_char(v.CREDATE,'yyyy'),v.ENTRYID from bms_st_io_dtl_unit_qry_v vwhere v.inoutflag='0' GROUP BY to_char(v.CREDATE,'yyyy-mm-dd'),to_char(v.CREDATE,'mm'),to_char(v.CREDATE,'yyyy'),v.ENTRYID
  • select * from(select to_number(to_CHAR(FBIZDATE,'yyyy')),FLOATT,FBIZDATE,FMATERIALID,CFTESTNUMBER,FCOSTCENTERORGUNITID,FCUSTOMERID,FDESCRIPTION,FQTY,FINQTY,FQTYBALANCE,REMARKS,FNUMBER FROM T_IM_BALANCE_QTY  where to_number(to_CHAR(FBIZDATE,'yyyy')-1)='2021' and FMATERIALID='010104001802'UNION allselect to_number(to_CHAR(FBIZDATE,'yyyy')),FLOATT,FBIZDATE,FMATERIALID,CFTESTNUMBER,FCOSTCENTERORGUNITID,FCUSTOMERID,FDESCRIPTION,FQTY,FINQTY,FQTYBALANCE,REMARKS,FNUMBER FROM T_IM_BALANCE_QTY  where to_number(to_CHAR(FBIZDATE,'yyyy'))='2021' and FMATERIALID='010104001802') a ORDER BY FBIZDATE

45

26

45

10

12345下一页
个人成就
内容被浏览7,277
加入社区7年195天
返回顶部