結果 : sql distinct count case when