이런식으로 12334를 뽑아 낼 수 있는 쿼리가 있을까요?
WITH t AS ( SELECT '가' cd FROM dual UNION ALL SELECT '나' FROM dual UNION ALL SELECT '다' FROM dual UNION ALL SELECT '다' FROM dual UNION ALL SELECT '라' FROM dual ) SELECT cd , DENSE_RANK() OVER(ORDER BY cd) dr FROM t ;
감사합니다 --__;