I have a game1 table, it seems like this:
| player1 | player2 | result_1 | result_2 |
|---|---|---|---|
| team1 | team2 | 10 | NULL |
| team1 | team3 | 10 | NULL |
| team2 | team3 | 6 | NULL |
result_1 is player1's result and result_2 is player2's result.
I want to make below table:
| player | count_null |
|---|---|
| team1 | 0 |
| team2 | 1 |
| team3 | 2 |
Please help me