I need to write a hierarchical query with the condition Ie. If the condition is true, some columns should be used in the join according to the previous sentence, and if it is false, other columns should be indicated in the sentence.
Pseudo code ...
If col1 is not null then
Connect by prior col1=col1
Else
Connect by prior col2=col2
...
Is something like this possible in plsql?
source
share