oracle 세로형 데이터 => 가로형 데이터로


oracle 세로형 데이터 => 가로형 데이터로

참고 1. https://gaechelin-guide.tistory.com/6 오라클(Oracle) 세로 DATA 가로로 출력 (LISTAGG) 아래의 예시 결과값은 오라클 라이브 SQL에서 확인 할 수 있습니다. (오라클 11g / 12c 기준) 1. 1개의 컬럼에 세로 ROWDATA 합치기 WITH T AS ( SELECT 1 AS TEXT FROM DUAL UNION ALL SELECT 2 AS TEXT FROM DU.. gaechelin-guide.tistory.com 2. select max( case when col1 = 'code1' then value1 else '' end) code1 max( case when col2 = 'code2' then value2 else '' end) code2 max( case when col3 = 'code3' then value3 else '' end) code3 from( select 'code1' as col1, '1' as v...



원문링크 : oracle 세로형 데이터 => 가로형 데이터로