Hey guys
I'm currently doing a NBA database for a class project. I have encountered a problem for which I cannot find a solution:
First of all, sorry for the database being in spanish, hope it's not a problem. The problem is, as you can see, I have a table called "Partidos" (games), in which ID_Partido is the key (autonumber); ID_Jornada (gameday 1,2,3...), ID_Stadio (stadium 1,2,3...), ID_Equipo1,ID_Equipo 2(team 1, team 2, 1,2,3...) are key in their respective tables. What I want to do is to make sure no team plays more than 1 game per gameday (and obviously not against themselves). I have tried with the tables you can see on the right side of the image, but haven't been able to find a solution.
Any help will be greatly appreciated, cheers.
I firstly put the question in the wrong section, sorry.