select top(100) row_number() over (partition by identitycard order by creationtime desc),* from CheckResultDetailsorder by identitycard