結果 : sql select value corresponding to max date