A table was given with 3 columns like Manager id,Manager
Name and Employee name.
Question was to create hierarchy.

Answers were Sorted based on User's Feedback



A table was given with 3 columns like Manager id,Manager Name and Employee name. Question was to c..

Answer / sharad kumar

select manager name,employee name,level
from table_name
start with manager name is null /* optional*/
connect by prior nocycle employee name = manager name
/*Child = Parent */

Is This Answer Correct ?    20 Yes 0 No

A table was given with 3 columns like Manager id,Manager Name and Employee name. Question was to c..

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

More SQL PLSQL Interview Questions

What is the relation b/w view and trigger

3 Answers   Accenture, TCS,


What is over () in sql?

0 Answers  


What is relationship? How many types of relationship are there?

0 Answers  


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

0 Answers  


What are analytic functions in sql?

0 Answers  






How to convert ms-excel file to oracle table?

2 Answers  


What are aggregate and scalar functions?

0 Answers  


What are the sql commands?

0 Answers  


What is query optimization in sql?

0 Answers  


How do you rank data in sql?

0 Answers  


Difference between aggregate function and analytical function?

3 Answers   Metric Stream,


What is a memo field?

0 Answers  


Categories