Return-Path: Delivered-To: 2-oracle-l@orafaq.com Received: (qmail 26485 invoked from network); 16 Jul 2007 15:58:18 -0500 Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180) by 69.64.49.119 with SMTP; 16 Jul 2007 15:58:18 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C5186713C70; Mon, 16 Jul 2007 16:56:07 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18746-07; Mon, 16 Jul 2007 16:56:07 -0400 (EDT) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3C152712CDB; Mon, 16 Jul 2007 16:56:07 -0400 (EDT) Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 16 Jul 2007 16:15:00 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EA97C713E43 for ; Mon, 16 Jul 2007 16:14:59 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13603-04 for ; Mon, 16 Jul 2007 16:14:59 -0400 (EDT) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C6D6E713D87 for ; Mon, 16 Jul 2007 16:14:59 -0400 (EDT) Received: by nz-out-0506.google.com with SMTP id s18so940340nze for ; Mon, 16 Jul 2007 13:17:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:from; b=slO4XAEMagWecUR1KfsWyn7f7jnT+HbvE9R8SE/r0g5oslbJuwZP2Y8AAoqVGCi8MPZ48OYFG4rFN2rcmjQvZXLXOAfr/7Bs0gZfsTZW3/2AfE0TbyKA8mK5fFLN+8wYsSp+SaZydl45dcL2oWHLpEljjn4n14wb6esCYqO7xEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:from; b=Wpq5G0BA6RwrAbY0qLoF0Pee+Skm+2EbdNB2OvHXWO8dLsl/iQFM87VauxdZCxhFk7xLuav/TFf8uY7vnCpBWrXGW4b6jJ9UX743y9/66/Cd4nHgW1jWayfC5xd5gCGHyub9dI4eIu/ShcoPtQAogvGwwyw80nqklwf9ssgTYdo= Received: by 10.115.61.1 with SMTP id o1mr4460318wak.1184617028482; Mon, 16 Jul 2007 13:17:08 -0700 (PDT) Received: from ?63.101.102.142? ( [63.101.102.142]) by mx.google.com with ESMTP id m24sm41323543waf.2007.07.16.13.17.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Jul 2007 13:17:07 -0700 (PDT) Message-ID: <469BD23C.7030802@inbox.lv> Date: Mon, 16 Jul 2007 13:17:00 -0700 User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: skuhn@ipb-halle.de CC: oracle-l@freelists.org Subject: Re: questions about views References: <200707161059.32068.skuhn@ipb-halle.de> <7765c8970707160422s7b68590bg856ff59f2b5d91b6@mail.gmail.com> <200707161337.37893.skuhn@ipb-halle.de> In-Reply-To: <200707161337.37893.skuhn@ipb-halle.de> Content-Type: multipart/alternative; boundary="------------080201080205020600050802" From: GovindanK X-archive-position: 50931 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-to: oracle-l-bounce@freelists.org X-original-sender: gkatteri@gmail.com Precedence: normal Reply-to: gkatteri@gmail.com List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: oracle-l X-List-ID: oracle-l List-subscribe: List-owner: List-post: List-archive: X-list: oracle-l X-Virus-Scanned: Debian amavisd-new at localhost.localdomain --------------080201080205020600050802 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > --------------080201080205020600050802 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 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
  

--------------080201080205020600050802-- -- http://www.freelists.org/webpage/oracle-l