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...

A table was given with 3 columns like Manager id,Manager
Name and Employee name.
Question was to create hierarchy.

Answer Posted / sharad kumar

select manager name,employee name,level
from table_name
start with manager name is null /* optional*/
connect by prior nocycle employee name = manager name
/*Child = Parent */

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a trigger call a stored procedure?

1127


What is cursor and why it is required?

1256


What are the types of variable use in pl sql?

1136


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

1197


What is a data manipulation language?

1073


How to use sql statements in pl/sql?

1188


what is rollback? : Sql dba

1179


What are the methods of filing?

988


What is mutating sql table?

1160


What do you mean by rowid?

1023


How can one get sql*loader to commit only at the end of the load file? : aql loader

1115


What is a native sql query?

1169


Is sql developer case sensitive?

1048


how to use regular expression in pattern match conditions? : Sql dba

1086


Is postgresql a nosql database?

1226