Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Get Count At every Level and Every Node???

Author  Topic 

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2008-09-15 : 05:41:02
Hiii....Guys,,,,
here with another problem,,,,,
i have a tree structure like this.........

A
/ b c
/\ / d e f g



yea like this so it means that,,,,A Parent Node Have Only two child Nodes...as u see in the picture so i jus want that if i like to count the members or nodes of child than they r 6(SIX) so like this i want to count the total child nodes below parent node in this type of tree structure.....on every level....

I like to have a recursive function that counts the child nodes at every level,,,,
so help me out of this guys???

Thanks In advance,,,,,,




ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2008-09-15 : 05:42:26
the formatting of this msg is changed so try to understand this???
thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-15 : 05:56:50
Have a look at below link to get a start on this

http://msdn.microsoft.com/en-us/library/aa172799(SQL.80).aspx
Go to Top of Page
   

- Advertisement -