Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: View vs. Table

Re: View vs. Table

From: Marc Melancon <mmelanco_at_sfi-software.com>
Date: Tue, 17 Aug 1999 11:07:17 -0400
Message-ID: <7pbtr0$8tq$1@news.igs.net>


Your example 1 and two are a lot different, example one uses one table, the other one uses a select from a view that is generated from a union operation. You cannot apply the "start with" clause on view with union.

MarcM

Sergey Khochay wrote in message ...
>Get this
>1. I try to write a query for a tree
>
> select col1, col2, col3 from TABLE1
> start with col3 is null
> connect by col2=col1;
>
> WORKS GOOD
>
>Here is my problem
>
>2. I do the same thing but inted I am selecting from VIEW
> select col1, col2, col3 from VIEW1
> start with col3 is null
> connect by col2=col1;
>
>...and it gives me an ERRORS....
>
>3. My view sound like this
>
>SELECT col1, col2, col3 FROM TABLE_A
>union
>SELECT col1, col2, col3 FROM TABLE_A
>union
>SELECT col1, col2, col3 FROM TABLE_A
>
>
>4. ANY WORD OF WISDOM WHY IT IS WORKING FROM TABLE AND NOT
>WORKING FROM VIEW?????
>
>
Received on Tue Aug 17 1999 - 10:07:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US