with t as (select *,row_number() overe (partition by 年级 order by 学号) rn
from 表)
select * from t where rn=1