結果 : sql group by custom aggregate function