I have a database of football players names, their names appear more than once if the table, i.e a players name might be there 10 times, the initial name is just a short version for ease, i then have a second field with their full name, but this only appears once, I want to do a sum of all their goals scored but display their full name that appears once and not their short name that appears 10 times or more.
SELECT Players.PlayerN ame, Sum(Players.Goa ls) AS SumOfGoals
FROM Players
WHERE (((Players.Goal s)>0) AND ((Players.Leagu eCup)="league") )
GROUP BY Players.PlayerN ame, Players.Team
HAVING (((Players.Team )="first"));
I use this at the moment, but this diplays their short name, their full name is DisplayName
Can anyone help????
SELECT Players.PlayerN ame, Sum(Players.Goa ls) AS SumOfGoals
FROM Players
WHERE (((Players.Goal s)>0) AND ((Players.Leagu eCup)="league") )
GROUP BY Players.PlayerN ame, Players.Team
HAVING (((Players.Team )="first"));
I use this at the moment, but this diplays their short name, their full name is DisplayName
Can anyone help????
Comment