其他分享
首页 > 其他分享> > 收发存汇总表

收发存汇总表

作者:互联网

--收发存汇总表

select
ia.iYear as 年,ia.iMonth as 月,ia.cWhCode as 仓库编码,war.cWhName as 仓库,ia.cInvCode as 存货编码,invc.cInvCName as 存货分类,
inv.cInvName as 存货名称,inv.cInvStd as 规格型号,ia.iNum as 结存数量,ia.iMoney as 结存金额
from
IA_Summary ia
left join Inventory inv on ia.cInvCode = inv.cInvCode
left join InventoryClass invc on left(inv.cInvCCode,2) = invc.cInvCCode
left join Warehouse war on ia.cWhCode = war.cWhCode

 

这是一个记录~~~

标签:汇总表,join,inv,收发,ia,invc,war,cWhCode
来源: https://www.cnblogs.com/ccodename/p/16618663.html