Hi. I was wondering if anyone could help me with this view.
I have 2 tables.
TableA (Holds Event Scores)
Player EventID Score
Jim | 1 | 3
Jim | 2 | 2
Jim | 2 | 4
Dave | 1 | 2
Dave | 2 | 2
Dave | 2 | 3
Dave | 3 | 1
Dave | 3 | 3
TableB (Holds Event Names)
Event EventID
Running | 1
Jumping | 2
Diving | 3
I wanted to join the two tables but only have 1 row for each player. The table would have a column for each Event in TableB with the players name and the event with the sum. So the end result would look like this:
View
Player Running Jumping Diving
Jim | 3 | 6 | 0
Dave | 2 | 5 | 4
Is it possible to create column names dynamically based off of a tables column value? If so, could anyone help me with this view?