【数据处理】各门店销售库存数据分析
2014-08-12 15:25
127 查看
select a.pluno,a.pluname,a.spec,a.curcsprc ,a.slprc ,
d.qty 西部销售,e.qty 东部销售,f.qty 中区销售,g.qty 团购销售,
a1.qty 西部库存,a2.qty 东部库存,a3.qty 中区库存,a4.qty 团购库存
from 商品码 a
left join (select pluno,sum(qty) qty from xbxs where rq between '20140701' and '20140801' group by pluno ) d on a.pluno=d.pluno
left join (select pluno,sum(qty) qty from dbxs where rq between '20140701' and '20140801' group by pluno ) e on a.pluno=e.pluno
left join (select pluno,sum(qty) qty from zqxs where rq between '20140701' and '20140801' group by pluno ) f on a.pluno=f.pluno
left join (select pluno,sum(qty) qty from tgxs where rq between '20140701' and '20140801' group by pluno ) g on a.pluno=g.pluno
left join (select pluno,qty from sskc where mddm='6015') a1 on a.pluno=a1.pluno
left join (select pluno,qty from sskc where mddm='7606') a2 on a.pluno=a2.pluno
left join (select pluno,qty from sskc where mddm='0004') a3 on a.pluno=a3.pluno
left join (select pluno,qty from sskc where mddm='0008') a4 on a.pluno=a4.pluno
where a.dptno like '1005%'
d.qty 西部销售,e.qty 东部销售,f.qty 中区销售,g.qty 团购销售,
a1.qty 西部库存,a2.qty 东部库存,a3.qty 中区库存,a4.qty 团购库存
from 商品码 a
left join (select pluno,sum(qty) qty from xbxs where rq between '20140701' and '20140801' group by pluno ) d on a.pluno=d.pluno
left join (select pluno,sum(qty) qty from dbxs where rq between '20140701' and '20140801' group by pluno ) e on a.pluno=e.pluno
left join (select pluno,sum(qty) qty from zqxs where rq between '20140701' and '20140801' group by pluno ) f on a.pluno=f.pluno
left join (select pluno,sum(qty) qty from tgxs where rq between '20140701' and '20140801' group by pluno ) g on a.pluno=g.pluno
left join (select pluno,qty from sskc where mddm='6015') a1 on a.pluno=a1.pluno
left join (select pluno,qty from sskc where mddm='7606') a2 on a.pluno=a2.pluno
left join (select pluno,qty from sskc where mddm='0004') a3 on a.pluno=a3.pluno
left join (select pluno,qty from sskc where mddm='0008') a4 on a.pluno=a4.pluno
where a.dptno like '1005%'
相关文章推荐
- 【数据处理】各门店销售库存数据导入
- 小白学数据分析----->怎么看待数据处理
- olap多维星型模型及数据存储(贷款多维分析仿真模型)/销售分析和决策(星型模型)
- 销售数据分析之客户究竟集中在哪里?
- 基于Echarts的销售企业经营数据分析-散点图
- 基于Echarts的销售企业经营数据分析-产品组合
- ERP 概要分析(采购、销售与分销库存)
- 项目开发流程,以及什么是数据分析平台,再者为什么要做数据分析平台,数据来源,数据处理流程
- 化工企业数据分析报表系统项目之销售模块分析
- 化工企业数据分析报表系统项目之销售模块分析
- python数据分析及数据处理相关资料
- 电子保卡与销售数据分析平台(ESA)一览
- 每人计:从门店入手,将客流统计和分析数据搬到线下
- 【数据处理】各门店POS销售导入
- 数据分析-数据处理
- 销售数据分析模型
- appstore软件销售数据统计分析软件Prismo
- MongoDB在航空公司销售数据分析系统中的应用
- 基于Echarts的销售企业经营数据分析-产品和客户集中度
- 数据可视化,在地图上分析供应链/销售/物流网络