Re: Functional Dependencies > Uniqueness Constraints



Jon Heggland wrote:
Marshall wrote:
It is also true
that a system that supported FDs explicitly could express
everything that one that had only uniqueness could; in other
words, one concept is strictly more powerful than the other,
and I propose there is a language design principle that
says that in that situation, you should not include the weaker
concept.

By that reasoning, FDs shouldn't be included if you have general
database constraints.

Yes.


And I want those.

I presume you mean, you want the general database constraints.

Given that an FD is just a particular kind of general database
constraint, does that introduce any particular difficulty? Well,
I guess it does actually, in that I expect it is undecidable whether
a given constraint is an FD or not. But that doesn't mean we
can't have a canonical expression of a constraint that is an
FD, and be limited by the fact that unless we tell the system
it's an FD (by using the canonical form) it won't know that
it is. It seems to me this problem crops up in a variety
of places, such as determining whether an operator is
commutative based on its constraints.


Marshall

.



Relevant Pages

  • Re: Foreign superkey support
    ... so are relation constraints (i.e. they are ... expressions over only the attributes of a single relvar). ... But a cardinality 1 constraint definitely defines a relation subtype, ... But really, all constraints are all database constraints, ...
    (comp.databases.theory)
  • Re: Foreign superkey support
    ... But really, all constraints are all database constraints, ... The other is to look at the way system tables are implemented in DSRI. ... started building Interbase. ...
    (comp.databases.theory)
  • Re: Foreign superkey support
    ... so are relation constraints (i.e. they are ... expressions over only the attributes of a single relvar). ... On one table it restricts inserts and on another table it restricts ... But really, all constraints are all database constraints, ...
    (comp.databases.theory)
  • Re: Foreign superkey support
    ... constraints and relvars. ... But really, all constraints are all database constraints, ... The best overview of DSRI a came up with was this one: ...
    (comp.databases.theory)
  • Re: Functional Dependencies > Uniqueness Constraints
    ... you want the general database constraints. ... And the exact same reasoning goes for keys / uniqueness constraints. ...
    (comp.databases.theory)