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

Can we rename a column in the output of sql query?

620


How do I find duplicates in a single column in sql?

617


Explain the commit statement.

686


Which table is left in left join?

624


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

670






Which constraints we can use while creating database in sql?

697


What is a table?

643


what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?

2084


What are data types in pl sql?

666


what is an extent ? : Sql dba

669


What are pl sql data types?

634


How to run sql statements through the web interface?

629


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

641


Are left and right joins the same?

627


What is the maximum number of triggers, you can apply on a single table?

634