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 are the advantages of primary key over unique+notnull
7 Answers Consultancy, LGS, Oracle,
While inserting 10 rows using procedure, if 3rd entry is having some error, what will be the output? How u will handle that error?
Can a composite key be null?
Explain spool.
How to add a column ‘salary’ to a table employee_details?
diff b/w function and procedure?
what are the differences between char and varchar? : Sql dba
In testing where do we use sql language and how it helps in testing?
What is the need of a partition key?
How would you hide a table in sql. ie the table can be only visible to its maker?
What is an index and types of indexes. How many number of indexes can be used per table ?
12 Answers Accenture, BirlaSoft, Cognizant, CTS, Symphony,
Can you have multiple SPs with the same name on a 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)