Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Why is a trigger used?

946


what does the t-sql command ident_current does? : Transact sql

985


How does sql store data?

922


What is self-join and what is the requirement of self-join?

1152


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1346


How many indexes can be created on a table in sql?

1056


What is difference between pl and sql?

1066


How to run sql statements with oracle sql developer?

1074


What are different types of keys?

1107


What does the sign mean in sql?

994


what is difference between delete and truncate commands? : Sql dba

1136


Is postgresql a nosql database?

1165


How to write html code in pl sql?

1119


What are inner outer left and right joins in sql?

1016


What is a natural join sql?

984