select case when 요일1 = '일' then day end as sunday,
case when 요일1 = '월' then day end as monday,
case when 요일1 = '화' then day end as tuesday,
case when 요일1 = '수' then day end as wednsday,
case when 요일1 = '목' then day end as thursday,
case when 요일1 = '금' then day end as friday,
case when 요일1 = '토' then day end as saturday
from (SELECT SUBSTR(:yymm,5,2) month, LEVEL day
, TO_CHAR(TO_DATE(:yymm||level,'yyyymmdd'),'dy') 요일1
, TO_CHAR(TO_DATE(:yymm||level,'yyyymmdd'),'d') 요일2
FROM dual
CONNECT BY LEVEL <= TO_CHAR(LAST_DAY(TO_DATE(:yymm, 'yyyymm')), 'dd')) test1
이 결과를... 달력처럼 만들고싶습니다..ㅜㅜ한행에 쭈루루룩 나오게요...