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 -> Transpose problem...

Transpose problem...

From: Ste <stro_at_solari.it>
Date: 23 Jul 2002 02:57:28 -0700
Message-ID: <3b2044af.0207230157.1253fe0f@posting.google.com>


Hi all,
I've got this problem. My original table is:

CODE | STOP_1 | STOP_2 | STOP_3
001  | ABC    | DEF    | GHI
002  | LMN    | OPQ    | RST

Where CODE is my primary key.
I'de like to get a view that gives the result in this form:

CODE | STOPS_LIST |
001  |  ABC       |
001  |  DEF       |
001  |  GHI       |
002  |  LMN       |
002  |  OPQ       |
002  |  RST       |

I've played around DECODE but seems to solve the reversed problem. Thanks in advance. Received on Tue Jul 23 2002 - 04:57:28 CDT

Original text of this message

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