I need to create a parent-child tree from a table of parentID and childID, where the tree may have several levels, so I need to self join the table for as many levels as the tree has, although I don't know how many levels there are. A viable solution for SQL that's not mySQL is discussed here: Simplest way to do a recursive self-join in SQL Server?, but hierarchical joins are not supported in mySQL.
Is there a way I can write a Python or R script wraps around the mySQL code to do this?
A follow up question is that I'd like to visualize the tree and make it interactive (viewer can add / delete entries), and the tree would probably be huge so maybe have a zoom feature / only see a part of a tree at a time - What's the best way to do that? I'm thinking of using the shiny package in R.
Thank you!