I was going to make a database to store a list of my DVD's. I have a question about the table structure though.
I want to have some fields for actors. I'm thinking 4 or 5 would be plenty. From what I understand it wouldn't be proper to have fields like Actor1 Actor2 and so on. As I would want to be able to search for a movie based on an actor, how would I structure my tables for this and keep things normalized? I was thinking perhaps another table with actor names, but then on the main table I'd still need several fields to hold each actor. Or maybe I need one field for actors where I'd simply put in all the names I wanted? Wouldn't that also be against normalization rules since I could possibly make typos which would introduce bad data?
I want to have some fields for actors. I'm thinking 4 or 5 would be plenty. From what I understand it wouldn't be proper to have fields like Actor1 Actor2 and so on. As I would want to be able to search for a movie based on an actor, how would I structure my tables for this and keep things normalized? I was thinking perhaps another table with actor names, but then on the main table I'd still need several fields to hold each actor. Or maybe I need one field for actors where I'd simply put in all the names I wanted? Wouldn't that also be against normalization rules since I could possibly make typos which would introduce bad data?
Comment