結果 : case when having count sql