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

How will you make performance better for application including front end and back

2 Answers   Metric Stream,


What is Histogram?

0 Answers   NIIT,


How will you a activate/deactivate integrity constraints?

2 Answers  


What is the advantage of index in sql?

0 Answers  


What are the new features in Oracle 10g. Compared to Oracle 9i?

1 Answers   Polaris,






what is a sub query?how will you calculate working days in a month using sub query?

4 Answers   InteQ,


How can I tell if sql is running?

0 Answers  


What is diff between bulk collect and forall

3 Answers   Metric Stream,


What information is needed to connect sql*plus an oracle server?

0 Answers  


Why do we need cursors in pl sql?

0 Answers  


State some properties of relational databases?

0 Answers  


What is sql exception?

0 Answers  


Categories