Assuming this representation of the tables :
Object is the "parent" table that holds the objectids of all the other 4 child tables .
The 'something' table , besides having an objectid column , will also include linked_to_objectid column. This column points only to the objectid from object1 and object2 (not from object3) .
My problem is that i will have to check everytime when i insert a row , if the linked_to_objectid is not from object3 .
Another way would be to add another column to object table that would describe what type of object the objectid is ... But it i feel that this would be wrong .
I know this model breaks the normal form rules , but i can't find some other ways .
Anyone could help me and find the best way to model this ?