此题为:lead和lag的用法,lead向上移动,lag向下移动。
select
球员姓名,
lead(球员姓名,1)over(partition by 球队名) as 球员错1行,
lead(球员姓名,2)over(partition by 球队名) as 球员错2行
from 得分表