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
What are the set operators in sql?
What is an exception in pl/sql?
Can we join tables without foreign key?
What if we write return in procedure?
What is sql engine in oracle?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
What is prepared statement in sql?
Does oracle roll back the transaction on an error?
Why do we use set serveroutput on?
Why is partition used in sql?
What are some emotional triggers?
What is a pragma statement?
How do you select unique values in sql?
What is materialized view in sql?
What is the usage of sql functions?