A table was given with 3 columns like Manager id,Manager
Name and Employee name.
Question was to create hierarchy.
Answer Posted / 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 |
Post New Answer View All Answers
Can a trigger call a stored procedure?
What is cursor and why it is required?
What are the types of variable use in pl sql?
what is the difference between join and union? : Sql dba
What is a data manipulation language?
How to use sql statements in pl/sql?
what is rollback? : Sql dba
What are the methods of filing?
What is mutating sql table?
What do you mean by rowid?
How can one get sql*loader to commit only at the end of the load file? : aql loader
What is a native sql query?
Is sql developer case sensitive?
how to use regular expression in pattern match conditions? : Sql dba
Is postgresql a nosql database?