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: SQL - View with two tables?

Re: SQL - View with two tables?

From: Anthony Hogan <ahogan-nospam-_at_iespana.es>
Date: Wed, 28 May 2003 08:11:16 +0100
Message-ID: <3ED46114.263ECEAA@iespana.es>


Look up the syntax for UNION.

hth
Anthony Hogan

Xaver Trapichler wrote:
>
> Hi,
> I have two tables with the same column-structure,
> I need a view including all data of the two tables ...
>
> create view
> select * from table1, table2
> --> This command creates one row with data
> of table1 and table2, then the next row with
> data of table1 and table2 ...
> result:
> <data table1> <data table2>
> <data table1> < data table2>
> ...
>
> I need a view where there are all rows of
> table1 and all rows of table2 (the column-structure of the tables is the
> same)
> result:
> <data table1>
> <data table1>
> <data table2>
> <data table2>
> ...
>
> Thanks for your answer in advice ...
> Xaver
Received on Wed May 28 2003 - 02:11:16 CDT

Original text of this message

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