I have 4 rows in a table: Players
PlayerName (8 distinct players)
Performance
good
bad
Salary (integer)
PositionPlayed (5 distinct positions)
I am looking to get an output where it shows the names of players and the count of number of times the player played in a particular position when performance is bad.
James | Kobe | Jordan
Center 5 | 8 | 5
PF 3 | 5 | 2
PG 2 | 1 | 0
I am new to SQL and I don't even know where to start for something like this. Please assist or provide some guidance on how to search on what I need to learn for this type of query
Thanks