WITH TEST AS (
SELECT 'TEST01' AS DATAS FROM DUAL UNION ALL
SELECT 'TEST01' AS DATAS FROM DUAL UNION ALL
SELECT 'TEST01' AS DATAS FROM DUAL UNION ALL
SELECT 'TEST02' AS DATAS FROM DUAL UNION ALL
SELECT 'TEST02' AS DATAS FROM DUAL
)
SELECT
DENSE_RANK() OVER (ORDER BY TATAS ) AS GROUP
,'' AS GROUP_SUM
,DATAS
FROM TEST
지금 짠 쿼리가 저런 형태입니다
딱 저상황일때..... COUNT낼수 없나요??
창조의 날개님이 달아주신것은 그룹바이를 해야되서요;; ㅠㅠ
그룹섬이니까 무조건그룹바이를 해야되나요??