| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Bill of materials / Groups in Groups
>> According to Atzeni & DeAntonellis, a domain constraint simply
expresses the fact that the values of a certain attribute must always
come from a certain set (the "domain" of the attribute). For instance,
the requirement that lft is an integer and must be greater than zero is
a domain constraint: it declares that values of lft come from the set
of positive integers. But a constraint like "subset_definition" is not
a domain constraint. It enforces a relationship that must hold between
two attributes of each tuple (lft < rgt), which is much stronger than
simply requiring an attribute to take on values from a pre-specified
set. The constraint "subordination" is even more complicated, eferring
to several attributes of a tuple and also to the other tuples in the
relation. It is certainly not a domain constraint. Since you've
specified two complex constraints that are neither key constraints nor
domain constraints, I have to conclude once again that the relation is
not in DKNF. <<
Why do compound domains bother you? Nobody has any trouble with a compound key. Would you think that (x,y) and (x,y,z) co-ordinates are not a domain? Longtitude and latitude? Polar co-ordinates? (lft, rgt) are not scalar attributes -- one without the other is meaningless, just like (x,y) co-ordinates.
The set for a domain does not have to be pre-specified. It can be defined by extension (i.e. by examples: sex = {0,1,2,9} in the ISO Standard, with the meanings 'Unknown', 'male', 'female' and "Not Applicable - lawful person'). But it scan be deined by intention as well (i.e. by a rule: odd = {i : i is an INTEGER AND MOD(i, 2) = 1}.
The placs where you get into a argument are:
What you have with (lft,rgt) is a self-reference. Given (a,b) I can determine if it is in the domain of ordered pairs of integers for my tree by a few tests:
The last one is the self-reference. I suppose if you wanted to consider the structure of every possible tree as a nested set model to be a domain set, you could.
--CELKO--
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Jan 26 2000 - 00:00:00 CST
![]() |
![]() |