In an Object-Oriented Heirarchy, I have a superclass table and a subclass table. The id (primary key) for each subclass element references an identical superclass element's id, indicating that they are the same element.
Should I include the following:
PRIMARY KEY (ID) REFERENCES SuperclassTable (ID)
Is that necessary, optional, encouraged, forbidden? I hope I explained myself correctly- if not, please let me know.
Thanks in advance. Liam Morley
imotic@hotmail.com
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
Should I include the following:
PRIMARY KEY (ID) REFERENCES SuperclassTable (ID)
Is that necessary, optional, encouraged, forbidden? I hope I explained myself correctly- if not, please let me know.
Thanks in advance. Liam Morley
imotic@hotmail.com
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."