I have data like this:
<img src="https://i.stack.imgur.com/HN4ag.png" alt="Data Table">
From the above table I am trying to write a SQL using connect by clause to get a hierarchy like this
MAINCONTENT
SPECIAL
RIDGE
SALESCONTENT
ANOTHERONE
RODGE
SOMETHING ELSE
ANOTHER
...
So far this SQL below is showing my only all the children of MAINCONTENT but i want to do it without passing the parameter. Also this below one is not showing me the Children of Children, meaning its not doing recursive.
select DISTINCT parent from MYTABLE
connect by prior CHILD = PARENT
start with PARENT = MAINCONTENT ;