zoukankan      html  css  js  c++  java
  • HRMS跑组织架构(父子关系)

    select child_org.organization_id,
           child_org.name
      
    from (select org.name,
                   org.organization_id,
                   pose_child.organization_id_parent,
                   pose_child.organization_id_child
              
    from hr_all_organization_units  org,
                   per_org_structure_elements pose_child,
                   per_org_structure_versions posv
             
    where org.business_group_id = 202
               
    and pose_child.organization_id_child = org.organization_id
               
    and trunc(sysdate) between trunc(posv.date_from) and
                   trunc(nvl(posv.date_to, sysdate))
               
    and posv.organization_structure_id = 940
               
    and posv.org_structure_version_id =
                   pose_child.org_structure_version_id) child_org
     start 
    with child_org.organization_id_parent = 204
    connect 
    by child_org.organization_id_parent = prior
               child_org.organization_id_child


             

                成长

           /      |     \

        学习   总结   分享

    QQ交流群:122230156

  • 相关阅读:
    前端开发拥有属于自己的云服务器能做什么?
    C语言编译、链接和运行详解
    C程序运行机制概述
    Java之顺序查找
    C语言注释
    C转义字符
    Java之二维数组基本使用
    Java之类与对象基本使用
    分享些发表技术类文章的平台
    解决蓝奏云链接无法访问问题
  • 原文地址:https://www.cnblogs.com/benio/p/1923087.html
Copyright © 2011-2022 走看看