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 |
What is the relation b/w view and trigger
What is over () in sql?
What is relationship? How many types of relationship are there?
how do you control the max size of a heap table? : Sql dba
What are analytic functions in sql?
How to convert ms-excel file to oracle table?
What are aggregate and scalar functions?
What are the sql commands?
What is query optimization in sql?
How do you rank data in sql?
Difference between aggregate function and analytical function?
What is a memo field?