Given:
object_table
------------
ID
Parent
Sample Data:
ID : Parent
1 : null
22 : 1
45 : 22
32 : 45
Query using connect by clause:
select * from object_table
start with id = 45
connect by prior parent = id;
Result:
ID : Parent
45 : 22
22 : 1
1 : null
Is it possible to write a query which gives the same result using only joins and not using connect by clause.