row_numer

利用row_numer() over (partition filed order by filed),进行同类排序
select t2.name,
       t2.subject,
       t2.point,
       row_number() over(partition by t2.name order by t2.point) rn
  from dwcn_ext.test_score t2

rn为同类序列号

你可能感兴趣的:(oracle)