結果 : select latest distinct record sql