What is the best method of implementing multi-valued attributes in a relational database?
I’m trying to convert an ER diagram into a relational schema, and I have this problem:
I have a table of ‘Programmes’ with attributes such as Programme ID, type, title, description etc – but then also have Actors – obviously this is multi-valued as a specific programme will have multiple actors in.
How should I represent this?
If an actor can have
Manyprogrammes and a programme can haveManyactors this sounds like a classicMany-to-Manyrelationship. Create a third table calledprogramme_actorsor perhapscastwith two columns: the primary keys of each of the two joined tables.