xmlagg listagg

 select  xmlagg(xmlparse(content BM.F_CAPTION||',' wellformed) order by BM.F_CAPTION).getclobval() F_ZDBM, xmlagg(xmlparse(content F_CONTRACT_NAME||',' wellformed) order by F_CONTRACT_NAME).getclobval() F_CONTRACT_NAME, F_PROJECT_ID,SUM(NVL(F_TOTAL_AMT,0))AS F_HTJE  
FROM ic_contract ht
LEFT JOIN BF_ORG BM ON BM.F_ID=HT.F_ZDBM
GROUP BY F_PROJECT_ID 

你可能感兴趣的:(xmlagg listagg)