I'm working with someone else data and need some help trying to get all the information. The table I'm working with has a cID, pID, txtLabel fields. CID PID txtLabel 2-00 Root level0 2-01 2-00 level1 2-02 2-01 level2 2-03 2-02 level3 2-10 Root level0_2 2-11 2-10 level1_2 2-12 2-11 level2_2 2-13 2-12 level3_2 I have another table that only has a few specific rows with CID. Say I have CID 2-11 and 2-03 I need to work back from this level and get every level till I get to the root. CID PID txtLabel 2-00 Root level0 2-01 2-00 level1 2-02 2-01 level2 2-03 2-02 level3 2-10 Root level0_2 2-11 2-10 level1_2 Since I started from 2-11 I would lose the two levels below it. I apologize if I didn't make it clear what I am trying to do. It is a level based table and each level can have multiple rows. I have specific levels but I need to work back and get the levels above it. Thank you
... View more