여러 열의 Data 한열로 합치기
SELECT C_CD , APPL_ID , SUBSTR(MAX(SYS_CONNECT_BY_PATH (CURRENT_NM, '/ ')),2) AS CURRENT_NM , SUBSTR(MAX(SYS_CONNECT_BY_PATH (DTL, '/ ')),2) AS DTL , SUM(ETC_MON) AS TOT_MON FROM ( SELECT C_CD , APPL_ID , F_GET_CODE_LANGNM(C_CD, '00050', CURRENT_CD, :LANG_TYPE, 'SY5020L') AS CURRENT_NM , CURRENT_CD , ETC_MON AS DTL , ETC_MON , ROW_NUMBER() OVER(PARTITION BY C_CD, APPL_ID ORDER BY SEQ_NO) AS RN F..
DataBase/Oracle
2012. 5. 16. 16:48