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
What does t sql mean?
How many subqueries can be nested in a statement?
Is sql harder than python?
How many postgresql users are there, worldwide?
What happens when a trigger is associated to a view?
Is sql considered coding?
Can we write dml inside a function in sql server?
what is a composite primary key ? : Sql dba
What is the basic structure of an sql?
What are types of indexes in sql?
Is and as keyword in pl sql?
What is pessimistic concurrency control? : Transact sql
What is loop in pl sql?
What is a boolean in sql?
define sql delete statement ? : Sql dba