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 |
Define commit, rollback and savepoint?
What are field types?
What is pragma exception and how, when, where us
What does “select count(*) from tab” result?
15 Answers IBM, Student, Wipro,
What is faster join or subquery?
what is explain plan?, given an example...
What is sql*loader?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
What is the purpose of cursors in pl/sql?
What is varchar data type in sql?
What is online transaction processing (oltp)?
what is a trigger? : Sql dba