WITH T AS ( SELECT '홍길동/asp' NM FROM DUAL UNION ALL SELECT '홍길동/php' FROM DUAL UNION ALL SELECT '홍길동/jsp' FROM DUAL UNION ALL SELECT '참참참/asp' FROM DUAL UNION ALL SELECT '참참참/jsp' FROM DUAL ) SELECT NM , LISTAGG(LANG,',') WITHIN GROUP(ORDER BY ROWNUM) LANGAGE FROM ( SELECT REGEXP_SUBSTR( NM ,'[^/]+',1,1) NM , REGEXP_SUBSTR( NM ,'[^/]+',1,2) LANG FROM T A ) GROUP BY NM