By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 6 Duplicates: 0 Warnings: 0
ID | TeamID | PlayerID | Name |
---|---|---|---|
1 | 15 | 9 | Tim Cook |
2 | 15 | null | John West |
3 | 16 | null | Tim Cook |
4 | 16 | 5 | John West |
5 | 17 | 11 | John West |
6 | 18 | null | John West |
Name | MAX(a.PlayerID) | MAX(b.PlayerID) | GROUP_CONCAT(a.ID SEPARATOR ',') | GROUP_CONCAT(b.ID SEPARATOR ',') |
---|---|---|---|---|
John West | 5 | 9 | 2,4 | 1,3 |
Tim Cook | 9 | 5 | 1,3 | 2,4 |