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
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 |
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 |
How will you make performance better for application including front end and back
What is Histogram?
How will you a activate/deactivate integrity constraints?
What is the advantage of index in sql?
What are the new features in Oracle 10g. Compared to Oracle 9i?
what is a sub query?how will you calculate working days in a month using sub query?
How can I tell if sql is running?
What is diff between bulk collect and forall
What information is needed to connect sql*plus an oracle server?
Why do we need cursors in pl sql?
State some properties of relational databases?
What is sql exception?