Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!uccba!mead!gordon From: gordon@mead.UUCP (Gordon Edwards) Newsgroups: comp.databases Subject: Re: UNIONS/VIEWS Keywords: ingres Message-ID: <1064@meaddata.mead.UUCP> Date: 3 Aug 90 13:37:33 GMT References: <5670@rtech.Ingres.COM> Sender: usenet@mead.UUCP Reply-To: mead!gordon@uccba.uc.edu Distribution: na Organization: Mead Data Central, Dayton OH Lines: 71 In article <5670@rtech.Ingres.COM>, robf@squid.rtech.com (Robert Fair) writes: |> Ingres 6.x SQL *does* handle view definitions containing UNION and UNION ALL, |> e.g. |> CREATE VIEW a_and_b |> AS |> SELECT x FROM a |> UNION |> SELECT x FROM b |> |> works just fine. |> No one is questioning the ability to create a view containing a UNION. Can the view be updated is the question. ---- 1) ANSI says, "Just say no." (ANSI X3.135-1989 pages 53, 66, 79) ::= CREATE VIEW [()] AS [WITH CHECK OPTION] Syntax Rule 3) If the is updatable, then the viewed table is an updatable table. Otherwise, it is a read-only table. ::= | UNION [ALL] ::= | () ::= SELECT [ALL | DISTINCT]