SELECT
SUBSTR(MAX(SYS_CONNECT_BY_PATH(kmsAccess,',')),2) kmsAccess
FROM (
SELECT
KMS060_ACCESS as kmsAccess,
row_number() over(partition by KMS020_TYPE ORDER BY KMS020_MENU_CD) RNUM
FROM KMS020TL A, KMS060TL B
WHERE A.KMS020_MENU_CD = B.KMS060_INDEX(+)
AND A.KMS020_MENU_CD = '200912081613110000' )
START WITH RNUM = 1
CONNECT BY PRIOR RNUM = RNUM -1
댓글 없음:
댓글 쓰기