My question is a little bit complicated, that's why I will use images to explain it:
Actually, I am trying to have a kind of nested structure for a GUI, using a MySQL database with the table below:
This table could be shown as:
and what I am trying to do is to show only the elements, that has at least one green element as a child (could be not a direct child), as shown below:
I know that Recursive Queries in MySQL doesn't exist, and MySQL is not Hierarchical, even if it could be simulated as explained here .
Does anyone have any idea? (The number of levels is not fixe)