pls explain connect by prior with example and its real time
use
Answer Posted / anil kumar karasi
sql>Select rownum,rownid,level,empno,ename from emp
connect by prior empno=mgr where mgr is null;
o/p
Rownum Rowid Level empno ename
------ ----- ----- ----- -----
1 AABBBCCDA 1 5678 abcd
2 AABBBCCDB 1 9087 poiu
3 AABBBCCDC 2 8567 QWER
4 AABBBCCDD 2 7321 LKJH
5 AABBBCCDE 3 1284 ZXCV
For more details go through this link
http://www.psoug.org/reference/connectby.html
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
What is bulk load in oracle?
How to use an explicit cursor without open statements?
What are the different editions of oracle?
Explain the use of ignore option in imp command.
Explain about integrity constraint?
How to count groups returned with the group by clause in oracle?
How can you use check constraints for self referential integrity?
Explain mutating triggers.
Is it possible to set second Primary Key Constraint in a table in Oracle Database ?
Explain the use of tables option in exp command.
How to find out what oracle odbc drivers are installed?
How to get a create statement for an existing table?
Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.
In SAP ECC 6.0 , under DB02 tcode , Tablespace name to be explain stepy step all the col