I have a table with a column that is an ID to either table T1 or table T2.
Is it a good idea to add an extra column that indicates if that ID is from T1 or T2, or should I do it differently?
I have a table with a column that is an ID to either table
Share
You’ll probably be happier with two columns: one a foreign key to T1, the other a foreign key to T2.