时间:2021-07-01 10:21:17 帮助过:4人阅读
<span style="font-family:Microsoft YaHei;font-size:18px;">select tt1.LSH from (select t1.zblsh,t1.lsh, row_number() over(partition by t1.ZBLSH order by t1.XT_XGRQ desc) rn from grjx_zbgl_bhgzl t1 WHERE t1.nf = '2015' ) tt1 where tt1.rn <=1</span>
sql server-获取重复数据的第一条
标签: