Are you looking for a root name (CONNECT_BY_ROOT) or a substring path to display the name "parents"?
SELECT id_area, nombre, PATHLEVEL , SUBSTR(PATHLEVEL,INSTR(PATHLEVEL,'/',-1,2)+1, INSTR(PATHLEVEL,'/',-1)-INSTR(PATHLEVEL,'/',-1,2)-1) PARENTNAME , rootNAME FROM( select id_area, nombre, sys_connect_by_path(nombre,'/') PATHLEVEL, CONNECT_BY_ROOT nombre rootNAME, from perarea start with id_areapadre is null connect by id_areapadre = prior id_area order by id_area );
source share