I\'m designing a small database for a personal project, and one of the tables, call it table C
, needs to have a foreign key to one of two tables, call them
If you're sure that C
will only ever be referring to one of two tables (and not one of N), then your first choice is a sensible approach (and is one I've used before). But if you think the number of foreign key columns is going to keep increasing, this suggests there's some similarity or overlap that could be incorporated, and you might want to reconsider.