How to write a procedure for displying the data in a TREE
or (PARENT and CHILD ) relationship , for ex: A is the main
project id, for this project B,C,D are sub tasks(sub
project id's) for B the sub tasks are e,f,g and for c is
h ,i ,j and for d is k,l,m
now i need to display the o/p in a TREE fashion

pls help me ,
thanks in advance
surendra

Answer Posted / rv

You can use Select..ConnectBY.. PRIOR clause in Oracle to
generate the data in tree structure. Google for the apt
syntax and usage.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of index in sql?

550


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

491


How is data stored in sql?

545


Can we use insert statement in function?

512


What is set transaction?

575






What is sql and also describe types of sql statements?

558


What is trigger and stored procedure in sql?

552


What is the difference between sql, mysql and sql server?

528


Is pl sql useful?

536


how to select first 5 records from a table? : Sql dba

506


Explain correlated query work?

586


Can we use join in subquery?

563


What is application trigger?

534


What are sql constraints?

560


Explain the savepoint statement.

595