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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: questions about views

Re: questions about views

From: GovindanK <gkatteri_at_gmail.com>
Date: Mon, 16 Jul 2007 13:17:00 -0700
Message-ID: <469BD23C.7030802@inbox.lv>


Stefan  

You would need to do as follows
*column seq2 noprint;
select 1 seq1 , 1 seq2 , column_a from table1 union
select 1 seq1 , 2 seq2 , column_b from table1 union
select 2 seq1 , 1 seq2 , column_c from table2 union
select 2 seq1 , 2 seq2 , column_d from table2 order by seq , seq2
/

*Hope this answers your question.

GovindanK

> Ok, I didn't express well what I want to do. I want to put one table after the
> other. So the original table is
> 1 a b
> 2 c d
> I want
> 1 a
> 1 b
> 2 c
> 2 d
> in the view.
> Thanks for answering.
> Stefan
>

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jul 16 2007 - 15:17:00 CDT

Original text of this message

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