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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Return Single Row with Multiple Cols Instead of Multiple Row

Re: Return Single Row with Multiple Cols Instead of Multiple Row

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 25 Oct 2005 22:35:35 -0700
Message-ID: <1130304926.490901@yasure>


Anil G wrote:
> Guys,
>
> Is it possible to return single row with multiple columns instead of
> multiple rows.
>
> Basically, query returns following hierarchy.
>
> product classification parent Classification
> ABC Motorcycle Motorcycle
> ABC On Road Motorcycle
> ABC Casual On Road
> ABC Model Casual
>
> Hierarchy is not fixed level,and values of classification change based
> on product.
>
> Thank you in advance,
>
> Anil G

Ah the fragrant smell of homework.

Look at using DECODE.

Demos in Morgan's Library at www.psoug.org.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Wed Oct 26 2005 - 00:35:35 CDT

Original text of this message

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