Hi,
I've had few times the same problem and i'd like to go over it.
I'm facing this kind of data:
say that i need to store documents, all of them have a set of fields in common and all also have specific fields:
articles [ TITLE, AUTHOR, DATE, PIC, EXTRACT, KEYWORDS, ... ]
news [ TITLE, AUTHOR, DATE, URL, SOURCE, KEYWORDS, ... ]
...
my first solution was to store all of this data like this:
doc [ TITLE, AUTHOR, DATE, KEYWORDS, TABLENAME, TABLEID ]
doc_articles [ ID, PIC, EXTRACT ]
doc_news [ID, URL, SOURCE ]
It works fine BUT i need 2 queries for each doc to get its corresponding specific data.
Is there a way to dynamicaly link the corresponding fields leading to a result set with all table fields??
Is there another way to design tables to make it easier?
Thx in advance for reading,
++