結果 : sql get value for max date