結果 : can we use aggregate function in case statement