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