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)
 Tree structure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-03-19 : 17:54:59
Laurent writes "how to manage a tree structure with SQL ?

i mean more precisely that i have already made up a table with a id column + another column that "point" to the id of the direct parent wich allow me to use a single table to store a tree structure, there is also a level column that store the "distance" of each element from the root and the last column store the order of the element that have the same parent.

i still cannot find what kind of select did i have to use, with what kind of arguments,... could you show me a little exemple ?

thanks guys !


Laurent"
   

- Advertisement -