|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- select b.*,期初余额 from (select 供应商名称,月份,(select sum(金额) from (select month(日期) as 月份,sum(入库金额) as 金额,供应商名称 from [商品入库$] group by month(日期),供应商名称) where 供应商名称 = a.供应商名称 and 月份 <= a.月份) as 累计发生额 from (select month(日期) as 月份,sum(入库金额) as 金额,供应商名称 from [商品入库$] group by month(日期),供应商名称) a) b,[供应商期初余额$] c where b.供应商名称 =c.供应商名称
复制代码
库存、往来.zip
(9.36 KB, 下载次数: 26)
- select 库房,品牌,类别,商品型号,期初数量,期初单价,期初金额,0 as 入库数量,0 as 出库数量,0 as 入库金额,0 as 出库金额 from [商品期初$] union all
- select 库房,品牌,类别,商品型号,0 as 期初数量,0 as 期初单价,0 as 期初金额,入库数量,0 as 出库数量,入库金额,0 as 出库金额 from [商品入库$] union all
- select 库房,品牌,类别,商品型号,0 as 期初数量,0 as 期初单价,0 as 期初金额,0 as 入库数量,出库数量,0 as 入库金额,出库金额 from [商品出库$]
复制代码 只分析了总库存
库存分析.zip
(11.47 KB, 下载次数: 22)
[ 本帖最后由 mn860429 于 2010-10-20 10:32 编辑 ] |
|