I am SURE that this is answered somewhere but I just don't know what this kind of operation is called to research. I have two tables:
Score:
| Name | Points |
|---|---|
| Bob | 14 |
| Janet | 8 |
| Fred | 87 |
| Alex | 221 |
Schedule:
| Left Player | Right Player |
|---|---|
| Janet | Fred |
| Alex | Bob |
So, I have a few things I want to do with this, but the main part I'm stuck on is if I want to make a new column in the "Score" table that is "Next Opponent". And it looks through the "Schedule" table and sees if the player is the left player and if they are fills in the right player as Next Opponent, and then does the reverse if they are the Right Player. I'm happy to research this on my own, I just don't know what this kind of merge is called or if this is a set of iteration with if statements or not. Would love a bump in the right direction here.