I have two tables:
table1 : id|name
table 2: id|parent|child
Two tables are used because an entry in table 1 can have multiple parents. So an hierarchy of sub items can exist multiple times.
For a given id in table 1, always being the lowest tree item, I would like to find the full path with all parent names up to the start of the tree.
Can this be done in a single mysql query?
Thanks!