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

  • 相关阅读:
    ASP.NET Page 那点事
    .Net项目分层与文件夹结构大全(最佳架子奖,吐槽奖,阴沟翻船奖揭晓)
    bash_profile和.bashrc的区别
    limits.conf生效问题
    有关snprintf返回值
    snprintf和strncpy对比
    Hadoop技术论坛
    Ubuntu系统微调
    interpreter和state模式的区别
    ANTLR实现的SQL解析器 OQL
  • 原文地址:https://www.cnblogs.com/benio/p/1923087.html
Copyright © 2011-2022 走看看