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 / hussain

hi,
i think this may help u,


select lpad('',level*4)||projectid,subtask from xyz
start with projectid ='&a' connect by prior projectid=subproid

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rename in sql?

542


Does sql support programming?

541


Can we use views in stored procedure?

505


how many tables will create when we create table, what are they? : Sql dba

530


What is a boolean in sql?

513






Is sql better than access?

532


What is anonymous block in sql?

627


How to Declare Fixed Length String Value In PL SQL

655


how can we repair a mysql table? : Sql dba

532


what are the limitations of identity column? : Transact sql

594


Which tcp/ip port does sql server run?

521


Can we join same table in sql?

515


How to start oracle sql developer?

550


what is the stuff function and how does it differ from the replace function? : Sql dba

615


What is crud stand for?

558