Hi Dave,
Thanks, that's it. Modifying this query I was able to retrieve Attachment path and name within the project. Final query is like this:
select oi.id as Project_ID, oi.code, oi.name,
cdfd.PATH_NAME,
cdf.name as File_name,
SUBSTR(CDV.ID,2,3)||'/00'||SUBSTR(CDV.ID,1,1)||'/'||CDV.ID as
folder_name,
cdh.VERSION_ID AS F_name
FROM inv_investments oi
INNER JOIN CLB_DMS_FOLDERS CDFD ON (CDFD.Assoc_obj_id = oi.ID)
inner join CLB_DMS_FILES CDF on (CDF.PARENT_FOLDER_ID = CDFD.ID)
inner join CLB_DMS_VERSIONS CDV on (CDF.id = CDV.file_id)
INNER JOIN CLB_DMS_HISTORIES CDH ON (CDV.ID = CDH.version_id)
where CDFD.Assoc_obj_id = 5147393
Matej