Re: Foreign superkey support
- From: "Brian Selzer" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 08 Aug 2006 18:57:07 GMT
"Marshall" <marshall.spight@xxxxxxxxx> wrote in message
news:1155059837.979156.61820@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
paul c wrote:
Perhaps all I'm saying is that the basic relational algebra doesn't need
a foreign key concept which I admit is a deviation from the specific
question.
I don't think of constraints as being part of the algebra per se.
Constraints
are a useful mechanism for ensuring integrity of variables, whereas the
algebra is a way of constructing values from other values. (Including
the values in variables.) Note that the algebra is what you do queries
with, but constraints are relevant only when doing DML: insert, update,
delete. (Although we may use the algebra to construct values that
we then insert, for example.)
I have always thought that constraints were part of the predicate of the
database, and while their enforcement during DML operations is critical, I
don't think that their definition requires the concept of variables. A
database value is static, so any change involves selecting a different
database value. What constraints do is limit the scope of available
database values that can be selected. In other words, constraints narrow
the scope of the discussion.
It is quite interesting to consider the idea of constraints as
descriptive entities for values, in addition to being prescriptive
for variables. We can then consider propogation of these
descriptions through the algebraic operations.
Constraints not only limit the values that a attribute, tuple, relation or
database can take, but they also augment the meaning of the values that they
constrain. For example, if you have a relation that can only contain
statements about men, then any conclusion drawn from that applies only to
men or groups of men.
I don't think there's anything wrong with foreign keys, as long as they're
But as long as people like the shortcut notation, I think the
example is a good reason for allowing super foreignkeys or foreign
superkeys!
Frankly I think there's too much emphasis on foreign keys. I
think we should emphasize the use of domestic keys wherever
possible, and use foreign keys only when the domestic variety
is not available.
not illegal.
Marshall
PS. dumb joke, sorry.
.
- References:
- Foreign superkey support
- From: Jon Heggland
- Re: Foreign superkey support
- From: Bob Badour
- Re: Foreign superkey support
- From: Jon Heggland
- Re: Foreign superkey support
- From: Bob Badour
- Re: Foreign superkey support
- From: Jon Heggland
- Re: Foreign superkey support
- From: paul c
- Re: Foreign superkey support
- From: Marshall
- Foreign superkey support
- Prev by Date: Re: Foreign superkey support
- Next by Date: Re: Foreign superkey support
- Previous by thread: Re: Foreign superkey support
- Next by thread: Re: Foreign superkey support
- Index(es):
Relevant Pages
|