Path: news.cambrium.nl!textnews.cambrium.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.com!33g2000vbe.googlegroups.com!not-for-mail
From: Nilone <reaanb@gmail.com>
Newsgroups: comp.databases.theory
Subject: Re: more on delete from join
Date: Sat, 29 Aug 2009 13:40:42 -0700 (PDT)
Organization: http://groups.google.com
Lines: 54
Message-ID: <ee6f4aea-a4df-4229-83c9-6426b5c9dc17@33g2000vbe.googlegroups.com>
References: <IPWjm.40275$Db2.30224@edtnps83> <VqydnQmqmaKYNQ7XnZ2dnUVZ_uudnZ2d@giganews.com> 
 <U0Tkm.40612$Db2.23627@edtnps83> <4a941558$0$23773$9a566e8b@news.aliant.net> 
 <on1lm.40697$Db2.22781@edtnps83> <c74ddb26-9d46-4b00-9a00-56c00bf47beb@c2g2000yqi.googlegroups.com> 
 <4hllm.40846$Db2.36998@edtnps83> <Oollm.40847$Db2.32818@edtnps83> 
 <11a03726-5535-4fab-9f98-1487c835334a@b14g2000yqd.googlegroups.com> 
 <iGUlm.41206$Db2.30628@edtnps83> <8b751f60-779b-4cdd-8361-8ab27cdc4ea0@e27g2000yqm.googlegroups.com> 
 <52Ylm.41248$Db2.9996@edtnps83> <b23154ca-cdc3-4570-bc1a-aa4c2a036d87@o32g2000yqm.googlegroups.com> 
 <4a986869$0$23762$9a566e8b@news.aliant.net> <c1d987c5-bfea-4c31-a97a-7271c08a3869@d21g2000vbm.googlegroups.com>
NNTP-Posting-Host: 196.210.218.230
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1251578442 30667 127.0.0.1 (29 Aug 2009 20:40:42 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 29 Aug 2009 20:40:42 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 33g2000vbe.googlegroups.com; posting-host=196.210.218.230; 
 posting-account=jTAZ8QoAAABcV-JPHVPbQ2F6pRtag3Iu
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) 
 Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Xref:  news.cambrium.nl

On Aug 29, 5:39=A0am, Kevin Kirkpatrick <kvnkrkpt...@gmail.com> wrote:
> On Aug 28, 6:29=A0pm, Bob Badour <bbad...@pei.sympatico.ca> wrote:
> > But computers do solve systems of equations:
> >
> > x+y =3D 3
> > x-y =3D 1
>
> Well, I will grant that. =A0 But there is an difference between
>
> exp[0]:=3D'x+y =3D 3'
> exp[1]:=3D'x-y =3D 1'
> print(Solve_system (exp, 'x')); -- prints 2
>
> and
> x+y :=3D 3;
> x-y :=3D 1;
> print (x); =A0-- prints 2? (does it? can it? see below...)
>
> To see why these must be treated differently, consider:
>
> exp[0] :=3D 'x=3D4'
> exp[1] :=3D 'x=3D5'
> print(Solve_system (exp, 'x')); -- error!
>
> vs.
>
> x:=3D4;
> x:=3D5; -- no error
> print(x); -- prints 5 (of course)
>
> I simply still see no hole in the following line of reasoning:
> 1) =A0A query is a value. =A0Its value is of type "valid query" - a strin=
g
> that can be evaluated by the DBMS (returning a relation value).
> 2) =A0Views are variables that hold values of type 'valid query'.
> 3) =A0The only sense by which views can be updated is in the sense that
> their values of type "valid query" can be modified. =A0Below are some
> valid view assignments:
> view x, y, z;
> x:=3D 'select 5 c1 from dual';
> y:=3D 'select 6 c1 from dual';
> z :=3D 'select * from x union select * from y';
> 4) As conventionally understood, "updatable views" result in using
> views as the target of a relational assignment. =A0But this is invalid
> no matter how you look at it. =A0If the assignment is of form <view> :=3D
> <relation>, you've got a type violation (views have type "valid
> query", not "relation value"); and if you treat it as <query
> result> :=3D <relation>, you're assigning to a value rather than a
> variable (which is no more coherent than assignment 5 :=3D 2 + 3;). =A0In
> other words, both of these are obviously illegal:
> z :=3D {{c1=3D7},{c1=3D8}};
> {{c1=3D5},{c1=3D6}} :=3D {{c1=3D7},{c1=3D8}};

This is a good post, and I agree with your reasoning.
