Re: views of binary operations
Date: 17 Jul 2006 05:34:52 -0700
Message-ID: <1153139692.565228.186410_at_h48g2000cwc.googlegroups.com>
Cimode wrote:
> [snipped]
> erk wrote:
> > Views and snapshots aren't unique to SQL. They're fundamental to
> > relational.
> I understand and agree but views and snapshots are not *always*
> necessary to understand RM issues. Marshall's question seems to
> directly point out directly to inter relation assignment rather than
> views or snapshots.
I think there are certainly relationships between the concepts. The
effect of an assignment in a relational languages hinges on views and
snapshots. A view can at any time, in any statement or expression, be
replaced by the relational expression it designates. It's nothing but a
shortcut. Snapshots in assignments are different, of course.
> > A simple rule of thumb might be this: A view is an expression,
> > unevaluated, while an assignment necessarily requires a value, thus a
> > snapshot. Special syntax is needed to differentiate a view creation
> > ("view(r) = A op B" or perhaps "view r = A op B") from a simple
> > assignment of a relval to a relvar ("r = A op B").
>
> As stated previously, I am not convinced that r = A op B can not
> logically lead to view(r) = A op B because it supposes r = view(r)
> which is a shorcut leading to an absurdity which is that a relation is
> the same as a view defined on the relation. OTOH view(r) = view(A op
> B) would be acceptable.
- erk