Re: Storing "deleted" data
From: <zeldorblat_at_gmail.com>
Date: 31 Oct 2005 07:02:21 -0800
Message-ID: <1130769897.026173.216650_at_g49g2000cwa.googlegroups.com>
Date: 31 Oct 2005 07:02:21 -0800
Message-ID: <1130769897.026173.216650_at_g49g2000cwa.googlegroups.com>
>b)You can try to declare a foreign key reference to one table AND another.
That doesn't help, though. Consider the following:
create table livePeople (
personID int not null,
...
)
create table deadPeople (
personID int not null,
...
)
create table personComment (
personID int not null,
commentID int not null
)
So what primary key does personComment.personID refer to? As far as I know, while it can refer to livePerson.personID AND
deadPerson.personID, it can't refer to livePerson.personID OR deadPerson.personID. Furthermore, there's no way to indicate that livePerson.personID and deadPerson.personID have to be unique whencombined. Received on Mon Oct 31 2005 - 16:02:21 CET