Oracle相同ID有多条记录,取时间最近的一条

select *
  from (select t.*,               
               row_number() over(partition by t.strcaseid order by t.cu_date desc) rn
          from b_push t) c
 where rn = 1;
————————————————
版权声明:本文为CSDN博主「ao123056」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ao123056/article/details/53375144
原文地址:https://www.cnblogs.com/lanliying/p/15763040.html