You are viewing a single comment's thread. Return to all comments →
I did almost as you did:
select n, Case when level = 1 then 'Root' when connect_by_isleaf = 1 then 'Leaf' else 'Inner' end from bst connect by p = prior n start with p is null order by n;
Seems like cookies are disabled on this browser, please enable them to open this website
Binary Tree Nodes
You are viewing a single comment's thread. Return to all comments →
I did almost as you did: