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 |
How many types of index are there?
Are null values same as that of zero or a blank space?
What is use of package in pl sql?
what is timestamp in mysql? : Sql dba
How does sql developer connect to oracle database?
Explain the working of foreign key?
What is an example of translating a date into julian format?
What is the difference between join and natural join?
How do I clear the screen in sql plus?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
What is sequence in sql?
What is a table partition?