Hi Guys,
My first question is going to be slightly random

...
Lets say you have a phone numbers table structured as such:
numberId
tableId
recordId
phoneNumber
Where tableId is the Id of the source table, recordId is the PK of the source record in the source table and numberId is the PK field for the number table...
Assuming that the tableId is only used in queries and is not explicitly defined as a field in the parent table, how would you enforce referential integrity using foreign keys and / or is this possible?
Cheers for any help, suggestions or alternative trains of thought.