結果 : sql having clause with case statement