Hello everybody,
I'm working with a friend on an assignment for school. It consists of the design of a database which can be used to store videosamples and especially a lot of information about them. There are a lot of videocodecs which all have their own property set for quality and encoding parameters. It also needs to be easily upgradeable with new codecs.
So we have a main table "samples" where every sample has his own ID. But then we ran into problems. If we have a table for codec1, codec2 and codec3 how do I make clear that a specific row in one of those tables is connected to a sample? I am familiar with the concept of association table however that doesn't seem to be the solution in our case, since there are many different tables.
We thought about storing the tablenames but that seems like a bad design and we doubt if it's possible to use the result of a query as a tablename (as
this reply indicates it isn't...)
We are sure there must be some elegant solution to this (and that a lot of people have ran into this issue), but its not an easy thing to google for.
Anyone?
Thank you very much!