select '10대' age, m10 male, f10 female from tbl union all select '20대' age, m20 male, f20 female from tbl union all select '30대' age, m30 male, f30 female from tbl union all select '40대' age, m40 male, f40 female from tbl union all select '50대' age, m50 male, f50 female from tbl union all select '60대' age, m60 male, f60 female from tbl union all select '70대' age, m70 male, f70 female from tbl
with t as ( select 100 m10, 131 m20, 150 m30, 350 m40, 210 m50, 220 m60, 100 m70 , 200 f10, 150 f20, 300 f30, 350 f40, 170 f50, 150 f60, 80 f70 from dual ) select substr(age,2,2)||'대' age, mval, fval from t unpivot ((mval, fval) for age in ((m10, f10),(m20,f20),(m30,f30),(m40,f40),(m50,f50),(m60,f60),(m70,f70)))