結果 : sql window function case when