利用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 is the serial number of the same type
利用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 is the serial number of the same type