結果 : sql get max version of record