I have a table in Access 2010 with data like this (the score field contains one of five values, A-E).
[Event], [Name], [Score]
1, Tom, A
2, Dick, E
3, Harry, B
4, Dick, D
5, Harry, B
6, Tom, C
… etc.
I want to create a query that will group the names and sum the scores, like this.
[Name], [A], , [C], [D], [E]
Dick, 0, 0, 0, 1, 1
Harry, 0, 2, 0, 0, 0
Tom, 1, 0, 1, 0, 0
If possible, I also want to calculate an overall score for each name, by allocating a value to each score and averaging them, like this (A=1, B=2, C=3, D=4, E=5, so for example, 1xA and 2xB and 1xD would be 1×1 + 2×2 + 1×4 = 9/4 = 2.25).
[Name], [A], , [C], [D], [E], [Overall]
Dick, 0, 0, 0, 1, 1, 4.5
Harry, 0, 2, 0, 0, 0, 2
Tom, 1, 0, 1, 0, 0, 2
What is the best way to do this?