genealogy Query - TechRepublic
Question
March 28, 2007 at 01:22 AM
act_ramesh

genealogy Query

by act_ramesh . Updated 19 years, 3 months ago

Hi,

i need a query for a particular process.

Table spec:
ChildId (number) (Primary key)
ChildName (varchar)
ParentId (number)

i need query for searching all the child elements for a parentid. 1 childid can be a parent id for two childid.

suppose, i ask genealogy for node 3. it should display all the nodes falls below that.
(Ans. :- 8, 9, 14, 17, 15, 11, 13, 16)
i need result as sql query only. (Don’t use cursor, procedure so and so)

This discussion is locked

All Comments