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 the difference between a web-garden and a web-farm? : Sql dba

1081


What is the difference between clustered and non-clustered index in sql?

1015


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

1068


How do I write a sql query in pgadmin 4?

983


What is the difference between a primary key and a unique key?

1054


Can we use pl sql in mysql?

1013


what are the advantages of mysql in comparison to oracle? : Sql dba

1004


How to use distinct and count in sql query? Explain

1023


How to disable a trigger name update_salary?

1266


what are null values? : Sql dba

953


What is a schema? How is it useful in sql servers?

1120


What is a sql trace file?

1028


Can a foreign key have a different name?

940


Why triggers are used?

989


How does sql store data?

917