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 |
will function return more than one value how
1.when will you use week refcursor and when will you use strong ref cursor ? 2.what is the use of sql trace..how do you use it ? 3.can you please send all the sql plus commands...like set line 6000....
what are date and time data types in mysql? : Sql dba
can i give user defined exception in a package
What is the difference between DELETE and TRUNCATE?
15 Answers Johns Hopkins University, Tech Mahindra,
Explain how to use transactions efficiently : transact sql
Which normal form is best?
how many values can the set function of mysql take? : Sql dba
what is the difference between truncate and delete statement? : Transact sql
What do you understand by pl/sql packages?
Can ddl statements be used in pl/sql?
How is indexing done in search engines?