码迷,mamicode.com
首页 > 数据库 > 详细

Oracle EBS-SQL (BOM-18):检查BOM与工艺路线对照.sql

时间:2014-06-12 17:42:54      阅读:430      评论:0      收藏:0      [点我收藏+]

标签:des   sql   oracle   app   io   rom   

/*有工艺路线,无BOM清单*/

select msi.segment1,

         msi.description

from apps.BOM_OPERATIONAL_ROUTINGS bor,

        apps.mtl_system_items_b msi

where msi.organization_id=Y

   and   bor.organization_id=msi.organization_id

   and   bor.assembly_item_id=msi.inventory_item_id

   and   not exists (select ‘X‘

                             from   apps.BOM_BILL_OF_MATERIALS bbom

                           where   bbom.assembly_item_id=bor.assembly_item_id

                              and    bbom.organization_id=bor.organization_id)

 --------------------------------------------------------------------------------------------                

/*无工艺路线,有BOM清单*/

select msi.segment1,

         msi.description

 from apps.BOM_BILL_OF_MATERIALS bbom,

         apps.mtl_system_items_b msi

where msi.organization_id=Y

   and   bbom.organization_id=msi.organization_id

   and   bbom.assembly_item_id=msi.inventory_item_id

   and   not exists (select ‘X‘

                             from   apps.BOM_OPERATIONAL_ROUTINGS bor

                           where   bor.assembly_item_id=bbom.assembly_item_id

                              and    bor.organization_id=bbom.organization_id)

Oracle EBS-SQL (BOM-18):检查BOM与工艺路线对照.sql,布布扣,bubuko.com

Oracle EBS-SQL (BOM-18):检查BOM与工艺路线对照.sql

标签:des   sql   oracle   app   io   rom   

原文地址:http://www.cnblogs.com/st-sun/p/3781868.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!