Hello,
I have a table called pr, this table consists of two fiels, parent and child.
the parent can have a child and the child can be a parent as well, this can happen multiple times
so I was trying to put the same table multiple times and joining the parent to the child of the next table.
for example
table1 table2 table3
parent Child parent child parent child
000 a ab 000 ac ab
011 a1 ab1 011 ac1 ab1
012 a2 ab2 012 ac2 ab2
013 a3 ab3 013 ac3 ab3
The problem with this is that I don't know up to how many tables I would have to put to get all the different levels
is there an easier way?
Thanks!!!!
I have a table called pr, this table consists of two fiels, parent and child.
the parent can have a child and the child can be a parent as well, this can happen multiple times
so I was trying to put the same table multiple times and joining the parent to the child of the next table.
for example
table1 table2 table3
parent Child parent child parent child
000 a ab 000 ac ab
011 a1 ab1 011 ac1 ab1
012 a2 ab2 012 ac2 ab2
013 a3 ab3 013 ac3 ab3
The problem with this is that I don't know up to how many tables I would have to put to get all the different levels
is there an easier way?
Thanks!!!!