By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | result | dice1 | dice2 | player_id |
---|---|---|---|---|
1 | LOSE | 4 | 4 | 9 |
2 | LOSE | 4 | 5 | 7 |
3 | WIN | 4 | 3 | 9 |
4 | LOSE | 2 | 3 | 9 |
5 | WIN | 6 | 1 | 7 |
6 | WIN | 1 | 6 | 7 |
7 | LOSE | 1 | 3 | 7 |
player_id | total | winning_percent | loosing_percent |
---|---|---|---|
9 | 3 | 33 | 67 |
7 | 4 | 50 | 50 |