Path: dp-news.maxwell.syr.edu!spool.maxwell.syr.edu!drn.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!transit4.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Date: Mon, 06 Jun 2005 20:22:29 +0200
From: mAsterdam <mAsterdam@vrijdag.org>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.databases.theory
Subject: Re: Translating constraints to  RM Terms
References: <ianbn2-dj5.ln1@pluto.downsfam.net>
In-Reply-To: <ianbn2-dj5.ln1@pluto.downsfam.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 28
Message-ID: <42a49461$0$46101$e4fe514c@news.xs4all.nl>
NNTP-Posting-Host: 82.92.225.151
X-Trace: 1118082146 news.xs4all.nl 46101 [::ffff:82.92.225.151]:37011
X-Complaints-To: abuse@xs4all.nl
Xref: dp-news.maxwell.syr.edu comp.databases.theory:31265

Kenneth Downs wrote:

> I'm wondering if some RM theorist might express something for me.
> 
> Consider table X with columns A and B.  There is a constraint that A must be
> less than B.  While we discuss such constraints every day, I realize I do
> not know how to express such constraints in relational terms.
> 
> For instance, A is actually a domain, as is B, but the constraint A < B must
> in fact be part of the very definition of the domain A, and here we are
> defining one domain in terms of another.  I realized I have not seen this
> disccussed in the year or so I have been a regular here.  Is defining one
> domain in terms of another allowed and considered trivial, no big deal?  Is
> it actually not allowed and this is some SQL alteration of true RM?

The constraint 'A < B' suggests to me that there is
'something' of A in B or the other way round. In this
case it is easy to engage some isolation.
The base table (say W) should just contain A and C, C being a positive 
number. X becomes a view with A = W.A and B = W.A + W.C

That this isolation is possible in this example
should not be taken to mean that it is in all cases
you have in mind, though.

My 2 Eurocents.


