foreign key pointing to multiple (varying) tables
From: Adrian Heilbut <adrian.heilbut_at_utoronto.ca>
Date: Wed, 27 Sep 2000 04:14:35 GMT
Message-ID: <39D174F4.63286EE8_at_utoronto.ca>
Date: Wed, 27 Sep 2000 04:14:35 GMT
Message-ID: <39D174F4.63286EE8_at_utoronto.ca>
Suppose we have a set of objects (laboratory samples) of
*different classes*.
Each class of sample has properties and relationships
specific to that class, so each class has its own table
containing the objects in that class.
Does this problem have a name?
Second, what is the 'relationally correct' way to solve it?
Or are there databases that can handle a foreign key to a
varying table?
(nb. Should/could we assign *global* identifiers and store those identifiers together inside each of the different classes? Then we could join all the different sample tables, and search by global ID. That strikes me as even uglier, however...)
Thanks!
Adrian
adrian.heilbut_at_utoronto.ca
Received on Wed Sep 27 2000 - 06:14:35 CEST