select
     msi.segment1                    装配件编码
    ,msi.description                  装配件描述
    ,msi.item_type                    类型
    ,msi.planner_code               计划员
    ,msi1.segment1                  部件编码
    ,msi1.description                 部件描述
    ,msi1.primary_unit_of_measure 单位
--,nvl(bom.ALTERNATE_BOM_DESIGNATOR,'主要')  替代项
   ,bic.ITEM_NUM                         序号
   ,bic.COMPONENT_QUANTITY      定额
   ,bic.COMPONENT_YIELD_FACTOR 产出率
   ,decode(bic.WIP_SUPPLY_TYPE,1,'推式',2,'装配拉式',3,'操作拉式',6,'虚拟件')     BOM供应类型
   ,bic.SUPPLY_SUBINVENTORY      BOM供应子库
   ,msi1.item_type                        类型
   ,msi1.wip_supply_type ITEM供应类型
   ,msi1.wip_supply_subinventory ITEM供应子库
from
     apps.MTL_SYSTEM_ITEMS msi,
     apps.MTL_SYSTEM_ITEMS msi1,
     apps.bom_bill_of_materials bom,         --bom.bom_structures_b
     apps.BOM_INVENTORY_COMPONENTS bic       --bom.bom_components_b
where
     msi.organization_id=X
  --and msi.inventory_item_status_code = 'Active'
    and bom.ORGANIZATION_ID=X
    and bom.assembly_item_id=msi.inventory_item_id
    and bom.bill_sequence_id=bic.bill_sequence_id
    and bic.component_item_id=msi1.inventory_item_id
    and  msi1.organization_id=msi.organization_id
 --and msi.item_type in ('FG','SA','PH')
   and msi.item_type in ('P')
--and msi.item_type = 'PH'
--and msi1.wip_supply_type='6'
--and msi1.item_type in ('SA','MP')
   and bic.DISABLE_DATE is null
--and msi.segment1 like'A0000000%'    --物料清单
--and msi1.segment1 in ('B00000000001','B00000000002')    --物料使用处
order by msi.segment1,

bic.ITEM_NUM

Oracle EBS-SQL (BOM-12):BOM清单查询的更多相关文章

  1. 【Oracle】SQL对某字段模糊查询,哪种方案最快?

    问题:有一张表hy_test,查找其字段name中包含ufo的记录数,下面哪种方案最快? A.select count(*) from hy_test where name like '%ufo%' ...

  2. [Oracle EBS R12]SQL Queries and Multi-Org Architecture in Release 12 (Doc ID 462383.1)

    In this Document   Abstract   History   Details   Previous Releases   Release 12   Multi-Org Session ...

  3. Oracle EBS-SQL (BOM-15):检查多层BOM(含common BOM).sql

    select       distinct b.lvl                                                      层次, b.OPERATION_SEQ ...

  4. Oracle EBS R12 (12.1.3) Installation Linux(64 bit)

    Oracle EBS R12 (12.1.3) Installation Linux(64 bit) Contents Objective. 3 1 Download & Unzip. 3 D ...

  5. Oracle EBS中分类账和法人实体 的关系(有sql语句实例)

    Oracle EBS中分类账和法人实体 的关系(有sql语句实例) 2012-12-06 16:05 2822人阅读 评论(0) 收藏 举报  分类: Oracle EBS(12)  Oracle数据 ...

  6. Oracle EBS 12.2.6 on VirtualBox

    Back in May, Oracle announced the general availability of Oracle VM Virtual Appliance for E-Business ...

  7. MySQL、Oracle和SQL Server的分页查询语句

    假设当前是第PageNo页,每页有PageSize条记录,现在分别用Mysql.Oracle和SQL Server分页查询student表. 1.Mysql的分页查询: SELECT * FROM s ...

  8. Oracle EBS DBA常用SQL - 安装/补丁【Z】

    Oracle EBS DBA常用SQL - 安装/补丁 检查应用补丁有没有安装:select bug_number,last_update_date from ad_bugs where bug_nu ...

  9. Oracle执行SQL查询语句的步骤

    Oracle执行SQL查询语句的步骤 如果用户在SQL*Plus下输入了如下查询语句:SELECT * FROM dept: 查询语句的处理主要包括三个过程:编译(parse).执行(execute) ...

  10. oracle中用rownum分页并排序的查询SQL语句

    oracle的sql语句中没有limit,limit是mysql中特有的,在oracle中可用rownum来表示,用于查询结果中的前N行数据. 如要查询emp表中的前5行数据,可用如下语句: sele ...

随机推荐

  1. MySql优化方案

    mysql优化方案总结 u       Mysql数据库的优化技术 对mysql优化时一个综合性的技术,主要包括 a: 表的设计合理化(符合3NF) b: 添加适当索引(index) [四种: 普通索 ...

  2. HtmlParser基础教程

    1.相关资料 官方文档:http://htmlparser.sourceforge.net/samples.html API:http://htmlparser.sourceforge.net/jav ...

  3. Apriori algorithm

    本文是个人对spmf中example1. mining frequent itemsets by  using the apriori algorithm的学习. What is Apriori? A ...

  4. Nutch配置

    http://www.linuxidc.com/Linux/2011-12/48782.htm http://wiki.apache.org/nutch/NutchHadoopTutorial htt ...

  5. 去掉ExpandableListView的箭头图标

    到ExpandableListView时有个箭头图标系统自带的在你自定义布局也不能去掉只要设置一个属性即可,如下: settingLists.setGroupIndicator(null);  ~~~ ...

  6. Chapter 5. Label and Entry Widgets 标签和输入部件

    Chapter 5. Label and Entry Widgets  标签和输入部件 有时候,你需要用户输入特定的信息,比如他们的名字,地址或者 甚至序号. 简单的方式来实现这个是使用Enry 部件 ...

  7. Map map=new HashMap(); 为什么是这样

    Map是接口,hashMap是Map的一种实现.接口不能被实例化. Map map=new HashMap(); 就是将map实例化成一个hashMap.这样做的好处是调用者不需要知道map具体的实现 ...

  8. (转载博文)MFC 窗口句柄获取

    句柄获取方法(获取该窗口的句柄后,即可向该窗口类类发送消息.处理程序):0.获取所在类窗口的句柄: this->m_hwnd 1.主窗口的句柄: 无论在主窗口类内,还是子窗口类内,获取主窗口句柄 ...

  9. 关于” fatal error C1010: unexpected end of file while looking forprecompiled header directive”问题

    其中文意思是:致命错误C1010:意想不到的文件结束而寻找预编译头文件的指令错误执行cl exe. 经过多次的查找,终于解决这问题 方法一: 在头文件中加“#include "stdafx. ...

  10. docker学习笔记(1)

    (1)Docker介绍 关于Docker的介绍,我就不列举出来了.到百度.谷歌搜索.非常多介绍文章.以下我给出官网的介绍:https://www.docker.com/whatisdocker/ (2 ...