oracle分组排序查询

oracle分组排序查询

SELECT *
FROM
  (SELECT row_number() over(partition BY service_name order by service_id DESC) rn,
    bs.*
  FROM mct_business_service bs
  )
WHERE rn >1;
posted @ 2021-02-03 10:56  码出天地  阅读(123)  评论(0编辑  收藏  举报