• 不同组织物料类别差异列表


    --不同组织物料类别差异列表
      SELECT MSI1.SEGMENT1 ITEM_NUMBER,
             MSI1.DESCRIPTION,
             MC1.DESCRIPTION MASTER_LEVEL,
             FU1.DESCRIPTION USER_NAME,
             MIC1.LAST_UPDATE_DATE,
             MC2.DESCRIPTION ORG_LEVEL,
             FU2.DESCRIPTION USER_NAME,
             MIC2.LAST_UPDATE_DATE
        FROM MTL_SYSTEM_ITEMS_B MSI1,
             MTL_SYSTEM_ITEMS_B MSI2,
             MTL_ITEM_CATEGORIES MIC1,
             MTL_ITEM_CATEGORIES MIC2,
             MTL_CATEGORIES MC1,
             MTL_CATEGORIES MC2,
             FND_USER FU1,
             FND_USER FU2
       WHERE     MSI1.INVENTORY_ITEM_ID = MIC1.INVENTORY_ITEM_ID(+)
             AND MSI1.ORGANIZATION_ID = MIC1.ORGANIZATION_ID(+)
             AND MSI1.INVENTORY_ITEM_ID = MSI2.INVENTORY_ITEM_ID
             AND MSI2.INVENTORY_ITEM_ID = MIC2.INVENTORY_ITEM_ID(+)
             AND MSI2.ORGANIZATION_ID = MIC2.ORGANIZATION_ID(+)
             AND MIC1.CATEGORY_ID = MC1.CATEGORY_ID
             AND MIC2.CATEGORY_ID = MC2.CATEGORY_ID
             AND MIC1.ORGANIZATION_ID = 204  --A组织ID
             AND MIC2.ORGANIZATION_ID = 706  --B组织ID
             AND MIC1.LAST_UPDATED_BY = FU1.USER_ID
             AND MIC2.LAST_UPDATED_BY = FU2.USER_ID
             AND MC1.CATEGORY_ID <> MC2.CATEGORY_ID
             AND UPPER (MSI1.INVENTORY_ITEM_STATUS_CODE) = 'ACTIVE'
    ORDER BY 1;

  • 相关阅读:
    卡特兰数
    混合运算改进(代码)
    典型用户和场景
    混合运算
    四则运算
    计算
    感想
    git
    附加导航 affix,side--toolbar(可结合博客园使用~)
    对python-rrdtool模块的浅研究。
  • 原文地址:https://www.cnblogs.com/quanweiru/p/4691971.html
Copyright © 2020-2023  润新知