sql 组内排序

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

order by identitycard

posted @ 2021-03-18 10:23  紫心落  阅读(289)  评论(0编辑  收藏  举报