結果 : sql select first record of each group