문제
MYSQL
내가 작성한 정답
select case
when month(DIFFERENTIATION_DATE) in (1,2,3) then '1Q'
when month(DIFFERENTIATION_DATE) in (4,5,6) then '2Q'
when month(DIFFERENTIATION_DATE) in (7,8,9) then '3Q'
when month(DIFFERENTIATION_DATE) in (10,11,12) then '4Q'
end QUARTER,
count(id) ECOLI_COUNT
from ecoli_data
group by 1
order by 1 asc
Share article