結果 : sql aggregate function select first