結果 : partition by case when sql