보통 select sum(rain) as rain_sum from aws 이렇게 쓰는데 가끔 얼마 이상인 값의 횟수를 구할때가 있다. select sum(case when 조건 then 값 end) as 별칭 from 테이블 ex) select sum(case when rain>15 and rain