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 myisam? : Sql dba
what are integrity rules?
What is t sql used for?
Which is faster view or stored procedure?
What does a pl/sql package consist of?
What are the various restrictions imposed on view in terms of dml?
What is the maximum number of triggers,can apply to a single table?
I have a tablle like this: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 I Want below o/p: cust acc --------------- a 1 b 2|3 c 4|5|6 Please any one can you have any ideas share me. I have urgent requirement.
What is nvarchar max in sql?
what are the advantages a stored procedure? : Sql dba
Why do we need cursor in pl sql?
Is postgresql a nosql database?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)