Binary Tree Nodes

  • + 0 comments

    In T-Sql, regardless of database engine you use, I would suggest you use Case; as most don't support IF/ELSEIF/IF condition blocks. Even in SQL server its IIF and then you have to nest the ELSE IF part. THe query you tried using only works in the MySQL database engine.

    As to your other question P=BST.N is saying the column P inside the query is joining to the outside table (in this case its a self-join) the BST is the alias of the outside table.