Skip to content
Advertisement

Root level node is not coming in result

I am new to the Oracle Hierarchical Queries. I have one table and have the below data.

Table Data Result Data My question is why parent id(100) is not included in the result? Below is the query.

Regards, Bhushan

Advertisement

Answer

If you to include starting value in your output then use union all:

or recursive CTE:

or add it to source data at first:

demo with all queries

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement