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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to write a sql query

Re: How to write a sql query

From: Ajay K <ajay_at_tems.com>
Date: Wed, 22 Nov 2000 13:33:36 -0600
Message-Id: <10688.122767@fatcity.com>


use decode ...

> Hi All
>
> How to write a sql query to print in the matrix report.
> Eg . Test table .
> a1 b1
> 1 2.3
> 1 3.5
> 1 7.0
> 2 1.7
> 2 2.6
> 2 2.9
> 3 1.3
> 3 2.9
> 3 3.0
>
>
> I need the output ,should be
>
> 1 2.3 3.5 7.0
> 2 1.7. 2.6 2.9
> 3 1.3 2.9 3.0
>
>
> Please , Any one suggest me how to write a sql query for this.
>
>
> Thanks & Regards
> Magesh
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: magesh
> INET: magesh_at_garoo.ne.jp
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Wed Nov 22 2000 - 13:33:36 CST

Original text of this message

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