Joni,
Please find the below query.Test this query.
Clarity:- 12.1.1
DB:- Oracle 10.2.0.4
select code project_code
from inv_investments inv where odf_object_code = 'project' and
inv.id not in
(
select distinct uv.id project_id
FROM
CLB_DMS_FOLDERS FOL , CLB_DMS_FILES FIL,clb_dms_versions ver,
CLB_DMS_FOLDERS FOL1, inv_investments UV
WHERE UV.ID = FOL.ASSOC_OBJ_ID AND FOL.ID = FOL1.PARENT_FOLDER_ID
and fil.id = ver.file_id
AND FOL1.ID=FIL.PARENT_FOLDER_ID(+)
AND FIL.NAME IS NOT NULL
)
pls look at the KB too.
https://comm.support.ca.com/?legacyid=TEC540993
cheers,
sundar