WITH T AS ( SELECT 'A' GUBUN , '1' DATA1, '2' DATA2, '3' DATA3, '4' DATA4, '5' DATA5 FROM DUAL UNION ALL SELECT 'B' GUBUN , '2' DATA1, '3' DATA2, '4' DATA3, '5' DATA4, '6' DATA5 FROM DUAL ) SELECT CASE WHEN :param = 1 THEN DATA1 WHEN :param = 2 THEN DATA2 WHEN :param = 3 THEN DATA3 WHEN :param = 4 THEN DATA4 WHEN :param = 5 THEN DATA5 END DATA FROM T