結果 : select first row for each group sql