with t as ( select 1 lv, '1본부' dept from dual union all select 2 lv, '1사업부' dept from dual union all select 3 lv, '1부서' dept from dual ) --pivot 사용 select * from t pivot (min(dept) for lv in (1 "본부", 2 "사업부", 3 "부서")) union all --decode 사용 select max(decode(lv,1,dept)) "본부" , max(decode(lv,2,dept)) "사업부" , max(decode(lv,3,dept)) "부서" from t