select * from (select ROW_NUMBER()over(partition by id order by rTime desc) rowId,* from Records where Uid=353) as Records where rowId=1