Quantcast
Channel: Convert Recurson Sql Server Query to Oracle Query
Viewing all articles
Browse latest Browse all 2

Convert Recurson Sql Server Query to Oracle Query

$
0
0

Hello guys,

I am new in oracle Please help me to convert posted query in oracle.

;with  CTE as
        (
        select  CPF_NO
        ,       EMP_NAME
        ,       MANAGERCPF_NO
        ,       1 as level
        from    EMP_SUBRDETAIL
        where   MANAGERCPF_NO = '100'
        union all
        select  child.CPF_NO
        ,       child.EMP_NAME
        ,       child.MANAGERCPF_NO
        ,       level + 1
        from    EMP_SUBRDETAIL child
        join    CTE parent
        on      child.MANAGERCPF_NO = parent.CPF_NO
        )
select *
from    CTE

Thanks


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images