Re: Functional Dependency to constrain a relation to exactly one element?

From: Jan Hidders <hidders_at_gmail.com>
Date: 30 Sep 2006 13:08:52 -0700
Message-ID: <1159646932.096099.59120_at_b28g2000cwb.googlegroups.com>


Marshall wrote:
> It's easy enough to describe a functional dependency that will
> constrain
> a relation to having at most one row; it is any functional dependency
> for which the determinant set is empty.

Yep.

> Is it possible to have a functional dependency that will constrain
> R to *exactly* one row?

No. The empty relation satisfies all FDs.

> If it can't be done with an FD, can we do it with a constraint?

Of course. In first-order logic you can specify this (i.e. that there is at least one tuple in the relation) with a simple existential statement.

  • Jan Hidders
Received on Sat Sep 30 2006 - 22:08:52 CEST

Original text of this message