all groups > sql server programming > august 2004 >
You're in the

sql server programming

group:

help need for query



help need for query Kiran
8/5/2004 11:38:50 PM
sql server programming:
Hi,
Actually i have one emp table with Columns [id,
name, salary, DOB, mgrid]. I want to display employee
data in tree structure, in relation with their
supervisors [Managers] (like explaned below) from emp
table.
This tree can go to any range. Can any body help
to write the t-sql query for this.


A - Name
AA - Name
AB - Name
ABA - Name
AC - Name
ACA - Name


Thx
Re: help need for query Joe Celko
8/6/2004 10:12:46 AM
Here is the link on Amazon.com for my new book on "Trees & Hierarchies
in SQL"

http://www.amazon.com/exec/obidos/tg/detail/-/1558609202/qid=1080772873/
sr=1-1/ref=sr_1_1/102-7683601-6345721?v=glance&s=books#product-details

--CELKO--
===========================
Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, datatypes, etc. in your
schema are.

*** Sent via Developersdex http://www.developersdex.com ***
Re: help need for query Roji. P. Thomas
8/6/2004 2:32:43 PM
For some ideas, see

http://www.winnetmag.com/Article/ArticleID/16123/16123.html


--
Roji. P. Thomas
Net Asset Management
https://www.netassetmanagement.com


[quoted text, click to view]

AddThis Social Bookmark Button