조건별 카운트

목적: 한 쿼리 내 각 조건에 맞는 건수 계산

select count(case when condition1 then 1 end) as cnt1,
		count(case when condition2 then 2 end) as cnt2
from table