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

Home -> Community -> Usenet -> c.d.o.misc -> Re: view as vertical concatenation of multiple tables

Re: view as vertical concatenation of multiple tables

From: David Spencer <David.W.Spencer_at_oracle.com>
Date: Wed, 09 Jan 2002 15:01:47 +0000
Message-ID: <3C3C5B5B.D3F7E9B6@oracle.com>


This works for me:

insert into tab1 values('Hello');
insert into tab2 values('Hello');
insert into tab2 values('World');

select value1 t from tab1
union all select value2 t from tab2;

Tim wrote:
>
> Hi,
> Is it possible to create a view that is a vertical concatenation of
> two or more tables? In other words, say you've got two tables created
> with:
>
> CREATE TABLE TAB1(VALUE1 VARCHAR2(10));
> CREATE TABLE TAB2(VALUE2 VARCHAR2(10));
>
> And you want a view with one column containing all the values of both
> tables.
> (I vaguely remember looking into this a while ago and concluding that
> it couldn't be done, someone prove me wrong).
> thanks,
>
> Tim

-- 
David Spencer
www.curlypi.com
Received on Wed Jan 09 2002 - 09:01:47 CST

Original text of this message

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