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 / sankar

select manager name,employee name,level from table_name
start with manager_name is null/* optional */ connect by prior
no cycle employee name=manager name/*child=parent*/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is 'mysqld'? : Sql dba

963


what is rdbms? : Sql dba

1010


what are all the different normalizations? : Sql dba

1030


What is insert command in sql?

1121


Can we connect to postgresql using sql developer?

997


What is meant by <> in sql?

963


How do you change a value in sql?

1009


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

1061


What is mutating sql table?

1103


Why is sharding used?

990


what is a join? : Sql dba

1025


Explain what is an index?

1050


Why left join is used in sql?

974


What are the various restrictions imposed on view in terms of dml?

961


What does data normalization mean?

948