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
最新推荐文章于 2024-02-01 23:01:02 发布