結果 : distinct count in case statement sql