CONNECT_BY_ISLEAF
works the other way around when using bottom up search (see this link http://technology.amis.nl/2009/11/14/oracle-11gr2-alternative-for-connect_by_isleaf-function-for-recursive-subquery-factoring-dedicated-to-anton/)I assume that you want to show more data about the item (like name) If that is the case just left join the items table.
SELECT PARENT_ID AS PARENT_ID,CHILD_ID, i.name AS CHILD_NAME, CONNECT_BY_ISLEAF, MAX(LEVEL) OVER () + 1 - LEVEL AS rev_level FROM items i LEFT JOIN relationship r ON (i.id = r.CHILD_ID) CONNECT BY PRIOR PARENT_ID = CHILD_ID START WITH CHILD_ID = 7 ORDER BY REV_LEVEL;
check this SQLfiddle: http://sqlfiddle.com/#!4/5c9fa/17 In addition check this post about bottom up searches (http://bitbach.wordpress.com/2010/10/18/implementing-bottom-up-path-traversal-for-hierarchical-tables/)