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

How much does sqlite cost?

985


What is bulk collect in pl sql?

1019


What is the difference between joins?

975


Is sql open source?

915


Write a sql query to convert all character to uppercase after hypen.

1376


Can we have two clustered index on a table?

966


What is difference between pls_integer and integer?

908


what is online transaction processing (oltp)? : Sql dba

936


What is mutating trigger?

969


How do you change a value in sql?

965


How do you go back in sql?

940


which tcp/ip port does sql server run on? : Sql dba

964


what is the difference between myisam static and myisam dynamic? : Sql dba

1002


Explain lock escalation? : Transact sql

1142


How can I see all tables in sql?

987