I am using hierarchical query to fetch out details from my table structure. I am referrring column from inner query in 'START WITH' condition, but its throwing unknown column error please check
Query :
select
(select obj.name
from (select LEVEL parentLevel, object_id id, name from temp_object START WITH object_id=sopi.OBJECT_ID CONNECT BY PRIOR parent_id = object_id) obj
where parentLevel=4) "temp Order Name"
from
(SELECT OBJECT_ID
FROM temp_params
WHERE value = 'Add' AND object_id IN
(SELECT object_id
FROM temp_references
WHERE reference IN
(SELECT object_id
FROM temp_params
WHERE list_id = 9133409) AND attt_id = '9133410')) sopi
Issue lies in highlighted area, to which I am planning to refer column from inner query.
i.e. START WITH object_id=sopi.OBJECT_ID is not working, please help