Foreign key pointing to multiple tables
Date: 17 Sep 2003 06:35:16 -0700
Message-ID: <220db75.0309170535.21a6a49b_at_posting.google.com>
Hi,
I have found a problem that I can't seem to solve in what I consider a
nice way.
Basicly I have a table called Jobs. Each Job has some details in its
My first thought was to have a Jobs table which has a foreign key pointing to a Type table, which lists the types, and then a column which has a foreign key to either Table A, Table B, Table C etc. This would them mean that there was a foreign key that pointed to different tables depending on what another column's data said.
Cheers,
Chris Received on Wed Sep 17 2003 - 15:35:16 CEST