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: problem with creating a view translating rows to columns

Re: problem with creating a view translating rows to columns

From: bernard (bernard_at_bosvark.com) <bernard_at_bosvark.com>
Date: 16 Aug 2006 08:54:35 -0700
Message-ID: <1155743675.640867.156790@p79g2000cwp.googlegroups.com>

Dot wrote:

> sample_id test1 test2 test3
> 1 1
> 1 1.25
> 1 0.23
> 2 1.25
> 3 34
> 3 67
>
> But what I really want is
>
> sample_id test1 test2 test3
> 1 1 1.25 0.23
> 2 1.25
> 3 34 67
>

Add a GROUP BY SAMPLE_ID at the and of your view definition.

Hope it helps
Bernard Received on Wed Aug 16 2006 - 10:54:35 CDT

Original text of this message

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