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

How to use transactions efficiently : transact sql

1004


How does stored procedure reduce network traffic?

980


What is serial sql?

932


How to avoid duplicate records in a query?

968


what is timestamp in mysql? : Sql dba

1025


what tools available for managing mysql server? : Sql dba

1030


What is the use of & in pl sql?

1003


What is primary key and foreign key with example?

893


How many databases can sql express handle?

952


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

958


What is int identity in sql?

1079


what is the difference between join and union? : Sql dba

1052


Does execute immediate commit?

1169


what's the difference between a primary key and a unique key? : Sql dba

994


Why do we need pl sql?

944