我有下表:
Season Name1 Goal1 Name2 Goal2 Name3 Goal3
1990 Smith 2 Abel 1 John 3
1990 Smith 1 Abel 1 John 1
1990 John 0 Smith 2 Abel 5
1991 John 1 Smith 1 Abel 2
1991 Abel 2 John 0 Smith 0
1992 Abel 3 John 0 Smith 1
Season 表示一个足球赛季,name1,name2 表示球员在给定比赛中的位置 Goal1 表示 Name1 的进球数
我想为每个赛季的每个名字生成一个列表,他们打了多少次以及他们的进球数。像这样的东西:
Abel 1990 3 games played 7 goals scored
Abel 1991 2 games played 4 goals scored
Abel 1992 1 games played 3 goals scored
John 1990 3 games played 2 goals scored
任何帮助,将不胜感激!