Time and again I come across the problem that I need to store identical type of information on multiple tables (the alternative that I am trying to avoid would be to create a child table with identical structure for each of my parent table).
What I would like to achieve is
1. To have an identifier which is unique across different tables of the current db
2. Whenever a record is deleted from any of a number of tables its related records should be deleted from the child table.
How do you usually do this?
Thanks for the help.
SWK
What I would like to achieve is
1. To have an identifier which is unique across different tables of the current db
2. Whenever a record is deleted from any of a number of tables its related records should be deleted from the child table.
How do you usually do this?
Thanks for the help.
SWK