Oracle ERP--查询库存交易与成本发生情况的SQL

select distinct b.segment1,
nvl(a.PRIOR_COST,0),
nvl(b.unit_weight,0)
from apps.mtl_material_transactions a,
apps.mtl_system_items b,
apps.cst_item_costs c
where a.ORGANIZATION_ID=b.ORGANIZATION_ID
and a.inventory_item_id=b.inventory_item_id
and a.ORGANIZATION_ID=c.ORGANIZATION_ID
and a.inventory_item_id=c.inventory_item_id
and trunc(a.TRANSACTION_DATE)>=to_date('01-01-2002','MM-DD-YYYY')
and trunc(a.TRANSACTION_DATE)<=to_date('04-30-2003','MM-DD-YYYY')
and A.ORGANIZATION_ID=4
--and a.subinventory_code in ('C11','C12','C13','B11','B12','D11')
[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/45641/viewspace-942835/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/45641/viewspace-942835/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值