結果 : sql select first value of each group