How to Determine the Type of Tree Nodes using SQL? November 14, 2018 data structure, mysql, sql 1 Comment Given a Relational Table stroing the nodes in a tree-like data structure, like this: +----+------+ | id | p_id | +----+------+ | 1 | null | | 2 | … [Continue Reading...]