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: Convert columns to rows

Re: Convert columns to rows

From: Noel <tbal_at_go2.pl>
Date: Wed, 31 Mar 2004 13:35:18 +0100
Message-ID: <c4ea55$nm0$1@inews.gazeta.pl>

> hi,
> I need to convert columns to rows
>
> here i have sample input data
>
> weekno manager1 manager2
> 51 33454 26749
> 52 33454 26749
>
> i wnat the output like this
>
> weekno manager
> 51 33454
> 51 26749
> 52 33454
> 52 26749

select weekno, manager1 manager
 from table
union all
select weekno, manager2
from table;

--
TomekB
Received on Wed Mar 31 2004 - 06:35:18 CST

Original text of this message

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