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
Can we perform dml in function?
How do you delete duplicates in sql query using rowid?
What is cascade in sql?
Is sql injection illegal?
Can we call a function containing dml statements in a select query?
Is coalesce faster than isnull?
Why do we create views in sql?
Can we join more than 2 tables in sql?
how to calculate expressions with sql statements? : Sql dba
What is the main difference between sql and pl/sql?
List different type of expressions with the example.
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
What is the non-clustered index in sql?
How do I pipe the output of one isql to another?
What is implicit cursor in pl sql?