You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Check to see if the parent node is NULL. If so, then it's the root (as it has no parent.) */
IF((SELECT COUNT(*) FROM BST WHERE P = B.N)>0, 'Inner', 'Leaf'))
/* Check to see if a parent node exists, or if the COUNT from the table where parent nodes equal the node number, then it must be an inner node. Otherwise it's a leaf. */