Hello Friends,
I've a table as given below
ID LChild RChild
1 2 3
2 4 6
3 5 7
4 8 9
5 10 11
6 12 13
7 0 14
Now i've to find out the LChild of 1, 1 has 2 in it's left and 2 has 4,6 as it's child and 4 and 6 has also two-two child each......At final 1 has 7 child on it's left and on it's Right it's 6
And also i've find out for each ID i.e 1,2,3,4,5,6,7
Count Left Nodes
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jan MontanoRank #1,295 · 1.3K reputationPosted Apr 7, 2009, 6:46 PM EDT
Would your table be a database table?
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Apr 8, 2009, 12:33 PM EDT
Hi
If you construct the actual tree 1 has only 2,4,8,12 on Left Hand side. On the Right had side of 1 but on the child's left side it as 5,10,0.
Finally, what is the your question. Could you please explain...