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 - 2006-10-05 : 08:00:53
arif writes "suppose i have two tables
TableName:recruiter,reclogins
recruiter will have id as autoincrement for every main recruiter reclogins will have id as autoincrement and recid as id of recruiter table.
In reclogin table consist of main recruiter id as well as sub recruiter id.
both table will have status as field
so my requirement is that i need to display in hierarcial manner
for eg:
mainrecruiterid status
-------------------------
1 1


subrecruiterid status
--------------------
1 2
3 1
4 2


mainrecruiterid status
-------------------------
2 1


subrecruiterid status
--------------------
5 2
6 1
7 2"

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-10-05 : 11:40:22
http://vyaskn.tripod.com/hierarchies_in_sql_server_databases.htm
http://www.nigelrivett.net/RetrieveTreeHierarchy.html


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -