Oracle EBS-SQL (BOM-12):BOM清单查询
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清单查询的更多相关文章
- 【Oracle】SQL对某字段模糊查询,哪种方案最快?
问题:有一张表hy_test,查找其字段name中包含ufo的记录数,下面哪种方案最快? A.select count(*) from hy_test where name like '%ufo%' ...
- [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 ...
- Oracle EBS-SQL (BOM-15):检查多层BOM(含common BOM).sql
select distinct b.lvl 层次, b.OPERATION_SEQ ...
- 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 ...
- Oracle EBS中分类账和法人实体 的关系(有sql语句实例)
Oracle EBS中分类账和法人实体 的关系(有sql语句实例) 2012-12-06 16:05 2822人阅读 评论(0) 收藏 举报 分类: Oracle EBS(12) Oracle数据 ...
- Oracle EBS 12.2.6 on VirtualBox
Back in May, Oracle announced the general availability of Oracle VM Virtual Appliance for E-Business ...
- MySQL、Oracle和SQL Server的分页查询语句
假设当前是第PageNo页,每页有PageSize条记录,现在分别用Mysql.Oracle和SQL Server分页查询student表. 1.Mysql的分页查询: SELECT * FROM s ...
- Oracle EBS DBA常用SQL - 安装/补丁【Z】
Oracle EBS DBA常用SQL - 安装/补丁 检查应用补丁有没有安装:select bug_number,last_update_date from ad_bugs where bug_nu ...
- Oracle执行SQL查询语句的步骤
Oracle执行SQL查询语句的步骤 如果用户在SQL*Plus下输入了如下查询语句:SELECT * FROM dept: 查询语句的处理主要包括三个过程:编译(parse).执行(execute) ...
- oracle中用rownum分页并排序的查询SQL语句
oracle的sql语句中没有limit,limit是mysql中特有的,在oracle中可用rownum来表示,用于查询结果中的前N行数据. 如要查询emp表中的前5行数据,可用如下语句: sele ...
随机推荐
- XML新手入门 创建构造良好的XML(2)
本文描述了构建良好的XML需要遵循的规则.作者详细介绍了构建XML需要考虑的元素,如何命名约定.正确的标记嵌套.属性规则.声明和实体,以及DTD和schema的验证,十分便于新手开始学习了解XML. ...
- jquery 鼠标右键事件、左键单击事件判定
$(function(){ $('a').mousedown(function(e){ alert(e.which) // 1 = 鼠标左键 left; 2 = 鼠标中键; 3 = 鼠标右键 retu ...
- Python之路第六天,基础(8)-反射
反射 利用字符串的形式去对象(模块)中操作(寻找/检查/删除/设置)成员(函数). Python中反射用到的4个内置函数:getattr(),setattr(),hasattr(),delattr() ...
- MySQL5.7新特性笔记
001.用户验证方式上的变化 MySQL5.7已经不要支持mysql_old_password验证插件,也不再支持old_password函数,也就说old_passwords也就不能被设置成1了.
- Vector, ArrayList, Array
JAVA新手在使用JAVA的时候大概都会遇到这个问题: JAVA中的Array, ArrayList, Vector, List, LinkedList有什么样的区别?尤其是Vector, Array ...
- OTCL的多继承
Class Thing Class Animal Class Other -superclass {Animal Thing} Thing instproc init {args} { puts &q ...
- MinGW 使用 msvcr90.dll
MinGW 编译出来的程序总是使用 VC6 的 msvcrt.dll ,VC8,9,10有很多新的API(仅限于c runtime),想使用怎么办? 比如:boost 对 MinGW 最低要求就是 m ...
- cf466A Cheap Travel
A. Cheap Travel time limit per test 1 second memory limit per test 256 megabytes input standard inpu ...
- BLOB存储图片文件二进制数据是非对错
子在一天一天虚度,生活也在一天一天中茫然 做人做事哪能尽如人意,付出多少收获多少虽然存在偏颇,但是不劳而获的心态是万万不对的,更不能去怨天尤人,低调为人.做好自己就可以了 改进你的系统的最好的方法是先 ...
- ROS Node/Topic/Message/Service的一些问题
1.Node http://blog.exbot.net/archives/1412 (摘自老王说ros) node干的什么活?callback queue里的活.这个callback queue里的 ...