ITPub博客

首页 > 数字化转型 > ERP > Oracle ERP--查询库存交易与成本发生情况的SQL

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

原创 ERP 作者:zqhcy 时间:2007-08-10 21:30:19 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/45641/viewspace-942835/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论
  • 博文量
    23
  • 访问量
    76462