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 is debugging done?

986


What is the difference between Union and Union all. Which is faster.

1406


What is where clause in sql?

1047


Explain how can you save or place your msg in a table?

1032


Can we use update in sql function?

1069


what happens if you no create privilege in a database? : Sql dba

1007


What is auto increment in sql?

1130


When to use inner join and left join?

964


How long does it take to learn pl sql?

1067


What does (*) mean in sql?

955


what is csv? : Sql dba

1001


What is the difference between delete and truncate commands?

1045


How many times can we commit in a loop?

1027


What is the difference between sql, mysql and sql server?

1111


What are the types of variables use in pl sql?

1045