zoukankan      html  css  js  c++  java
  • Oracle EBS-SQL (CST-2):检查有BOM但成本不基于累积的数据.sql

    select c.segment1                                                                          物料编码,
             c.description                                                                         物料描述,
             f.item_cost                                                                                 成本,
             DECODE(f.based_on_rollup_flag,'1','基于累积','2','不基于累积')     成本类型
      from

        --bom.cst_item_cost_details            b,
           inv.mtl_system_items_b               c,
           bom.bom_bill_of_materials           d,
        --bom.bom_inventory_components   e,
           bom.cst_item_costs                      f
     where c.organization_id=94
        and d.organization_id=c.organization_id
        and f.organization_id=c.organization_id
     --and b.organization_id=c.organization_id
        and f.based_on_rollup_flag='2'
        and f.cost_type_id='1000'
        and c.inventory_item_id=f.inventory_item_id
        and c.inventory_item_status_code='Active'
        and c.item_type<>'P'
        and d.assembly_item_id=c.inventory_item_id
     --and d.bill_sequence_id=e.bill_sequence_id
       and d.bill_sequence_id in (select t.bill_sequence_id
                                               from bom.bom_inventory_components t)

     --and e.component_item_id=c.

  • 相关阅读:
    牛客网-练习题
    牛客网-趋势科技-2020届校园招聘上机考试-1
    976. Largest Perimeter Triangle--Easy
    812. Largest Triangle Area--Easy
    123. Best Time to Buy and Sell Stock III--Hard
    1131. Maximum of Absolute Value Expression--Medium
    1103. Distribute Candies to People--Easy
    满足高并发的I/O Reactor线程模型 (附图,附代码)
    最简洁易懂的方式介绍I/O模型
    从鸿蒙OS的特性看华为应对封锁的策略
  • 原文地址:https://www.cnblogs.com/st-sun/p/3781966.html
Copyright © 2011-2022 走看看