I have a table that has ID, Name, ParentID columns. I have this query to show the ParentID|ID relationship.
select ParentID, ID from t1
connect by prior ID = ParentID;
Now I want to get the name of the parent and child for each record. So the output would be ParentID|ParentName|ID|ChildName. How would I modify the query to do this. Thanks much.