Here I want to take all the children including parent using parentid what is wrong.Am getting Exception connect by in loop user data. Thanks in Advance.
Query :
select *
from rdt_organization
connect by prior parentid = 102;
Table Content :
id parentid
102 null
103 102
112 102
104 103
105 null
106 105
Output Expected :
id parentid
102 null
103 102
112 102
104 103