oracle 去除重复值

select zyid,zdmc from
(
select ROW_NUMBER() OVER(PARTITION BY zyid ORDER BY zdrq DESC) xh, zyid,zdmc from JK_HIS_BRZDXXB_CRB where zdlxmc !='出院诊断'
)a where xh=1

posted on 2022-07-05 09:51  zyp_java_net  阅读(31)  评论(0)    收藏  举报

导航