selectid,case size_of_colony_groupwhen 1 then 'CRITICAL'when 2 then 'HIGH'when 3 then 'MEDIUM'when 4 then 'LOW'end as colony_namefrom (select id, ntile(4) over (order by size_of_colony desc) as size_of_colony_groupfrom ecoli_data) as suborder by id;윈도우 함수 + 서브쿼리로 그룹 분류하기: 핵심 개념 요약특정 기준(예: 크기, 점수, 매출 등)에 따라 데이터를 **상대적 그룹(분위, 등분)**으로 나누고 싶은 경우가 있다. 이때 유용하게 사용하는 것이 바로 **윈도우 함수 NTILE()**와 서브쿼리..