Explain Connect by Prior?
Answers were Sorted based on User's Feedback
Answer / abhijit
The start with .. connect by clause can be used to select
data that has a hierarchical relationship (usually some sort
of parent->child (boss->employee or thing->parts).
select a.*, level from emp a
start with mgr is null
connect by mgr = prior empno;
The start with .. connect by clause can be used to select
data that has a hierarchical relationship (usually some sort
of parent->child (boss->employee or thing->parts).
Is This Answer Correct ? | 19 Yes | 0 No |
Answer / guest
Retrives rows in hierarchical order.
e.g. select empno, ename from emp where
Is This Answer Correct ? | 6 Yes | 16 No |
What is the diffrence between IN and EXISTS.which one is faster.
Can we call procedure in select statement?
How can analyze query after generating explain plan ?
What are the benefits of using PL/SQL packages?
What is the difference between a procedure and a function?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
What is db journal file?
Is join same as left join?
What are different categories of sql commands?
How do I find sql profiler?
how to enter binary numbers in sql statements? : Sql dba
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?