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

Can sql developer connect to db2?

1103


What is server name sql?

1203


How do I use google cloud in sql?

1144


What is trigger explain with example?

1091


What is the use of %rowtype?

1086


Does mysql_real_escape_string prevent sql injection?

994


What is the use of primary key?

1047


What is varchar example?

1080


Difference between truncate, delete and drop commands?

1142


Can we insert in sql function?

1142


What is parameter substitution in sql?

1079


what are the advantages of using stored procedures? : Sql dba

1153


What is a clob in sql?

1063


What is the difference between left join and right join?

987


how do you control the max size of a heap table? : Sql dba

1022