Re: The Practical Benefits of the Relational Model
Date: 28 Sep 2002 11:38:12 -0700
Message-ID: <bdf69bdf.0209281038.61057969_at_posting.google.com>
"Peter Koch Larsen" <pkl_at_mailme.dk> wrote in message news:<3d95577e$0$70305$edfadb0f_at_dspool01.news.tele.dk>...
> > For example, is a view
> >
> > select x+y, x-y from point
> >
> > updateable? If it is, then how about
>
> This view looks updateable for a DBMS with a sufficienty strong inference
> mechanism, but there are are subtle reasons it might not be so. As an
> example imagine inserting a tuple { 100, - 100}.
> This would have the solution x = 0,y = 100, but if x and y are represented
> with limited precision (e.g. standard reals as represented in the most
> normal IEEE format), the solution x = 3.0 E-21 and y = 100 and a plethora of
> other would be an equally good solution. Which of the two tuples should be
> inserted? What happens if e.g. the value { x = 0.0, y = 100.0} is already
> present - should a nonpresent solution be inserted?
> Even if we disregard these points as nitty-gritty, your next example raises
> other points...
> >
> > select arccos(x/(x*x+y*y)), sqrt(x*x+y*y) from point
> >
> > ?
>
> ...namely that solving for x,y might result in a solution, where the
> inserted tuple because of the infinite precision might not even be present
> in the result set. Again disregarding this as nitty-gritty, what about a
> query such as
The real issue here is that the mapping is not one-to-one. If we insert (x=0,y=1) point, then what angle it would be? Pi/2 or -3*Pi/2?