By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 4 Duplicates: 0 Warnings: 0
Records: 4 Duplicates: 0 Warnings: 0
team_1 | team_2 | player_id | team_id | @rn1 := 0 | rownumber | player_id | team_id | @rn2 := 0 | rownumber |
---|---|---|---|---|---|---|---|---|---|
1 | 2 | 1 | 1 | 0 | 1 | 3 | 2 | 0 | 1 |
1 | 2 | 2 | 1 | 0 | 2 | 4 | 2 | 0 | 2 |
player_name | player_name |
---|---|
Jim | Fred |
Joe | Bill |