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 is graph sql?
How do I install microsoft sql?
What is row_number () in sql?
What are the query optimization techniques?
Which join is default?
How do you exit in sql?
What plvcmt and plvrb does in pl/sql?
Does truncate table reset auto increment?
Why trigger is used in sql?
How to avoid using cursors? What to use instead of cursor and in what cases to do so?
Enlist some predefined exceptions?
what are the performance and scalability characteristics of mysql? : Sql dba
Write a unique difference between a function and a stored procedure.
How many clustered indexes can you have?
what are the drivers in mysql? : Sql dba