結果 : sum distinct case when sql