首页 > 其他 > 详细

12月29号退货近效期品种明细

时间:2017-01-06 22:47:15      阅读:246      评论:0      收藏:0      [点我收藏+]



select b.spbh,b.spmch,b.shpgg,b.dw,b.jlgg,b.shengccj,b.shpchd,b.pizhwh,b.jixing,g.shl,g.hshj,g.hsje,a.pckhdj,a.bmgs,a.xsbmxz,a.fukfs,a.gebjj,a.pihao,a.baozhiqi,a.sxrq,a.pici,c.huowname,a.jwh,d.danwbh,d.dwmch,a.ywlxr,j.username,j.ywy,h.kaiprq,h.ontime,f.退货人

from sphwph a,spkfk b,huoweizl c,mchk d,(select distinct 单位编号,退货人 from fr_spkfkbakjxqth161229a) f,jh_rkmx g,jh_rkhz h,jh_djhz j 

where g.spid=b.spid and a.spid=b.spid and a.hw=c.hw and a.dwbh=d.dwbh and g.sxrq<=‘2017-09-30‘ and a.sxrq<>‘‘ and d.danwbh=f.单位编号

and g.djbh like ‘jhc%‘ and g.rq>=‘2016-12-29‘ and g.rq<=‘2016-12-30‘ and g.pici=a.pici and g.hw=a.hw and g.djbh=h.djbh and h.kaipiaodjbh=j.djbh

order by d.danwbh


12月29号退货近效期品种明细

原文:http://bks2015.blog.51cto.com/9847303/1889811

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!