Hi,
I am trying to design a movie database. Yes, I know there are templates around but they do not go into enough detail. I am specifically having problems with many-to-many relationships. Do I need a junction table for each many-to-many relationship that exists. So if I have 5 many-to-many relationships, I have to have 5 junction tables. Also, I do not know how to deal with TV series and episodes. I will have both movies and tv series with episodes.
So far I have these tables.
tblmovies - title, country, year, length etc.
tblgenre - each movie can only have 1 genre
tblsubgenre - each movie has only 1 subgenre
tblproducer - each movie may have more than 1 producer and each producer can produce many movies
tbldirector - each movie may have more than 1 director and each director can direct many movies
tblactors - each movie has more than 1 actor and each actor can appear in many movies
Would I put the episode in the tblmovies as if it were a movie and then have another table for the series?
Please help me with the relationships and how many junction tables I would need? If someone could post an image of the table relationships that would be great.
Thank you
I am trying to design a movie database. Yes, I know there are templates around but they do not go into enough detail. I am specifically having problems with many-to-many relationships. Do I need a junction table for each many-to-many relationship that exists. So if I have 5 many-to-many relationships, I have to have 5 junction tables. Also, I do not know how to deal with TV series and episodes. I will have both movies and tv series with episodes.
So far I have these tables.
tblmovies - title, country, year, length etc.
tblgenre - each movie can only have 1 genre
tblsubgenre - each movie has only 1 subgenre
tblproducer - each movie may have more than 1 producer and each producer can produce many movies
tbldirector - each movie may have more than 1 director and each director can direct many movies
tblactors - each movie has more than 1 actor and each actor can appear in many movies
Would I put the episode in the tblmovies as if it were a movie and then have another table for the series?
Please help me with the relationships and how many junction tables I would need? If someone could post an image of the table relationships that would be great.
Thank you