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: Using Group By with Expressions

Re: Using Group By with Expressions

From: Mark Merritt <merritt_at_mail.msen.com>
Date: 1997/05/24
Message-ID: <5m75m6$t5u@ftl.msen.com>#1/1

SELECT TBL.COL1,

        TBL.COL2,
        DECODE ( TBL.COL3, "Value", TBL.COL3, TBL.COL4 ) "Bad Billy's A*se",
        SUM ( TBL.COL5 )

 FROM TBL
 GROUP BY COL1,
          COL2,
        DECODE ( TBL.COL3, "Value", TBL.COL3, TBL.COL4 )

/*+
The opinions expressed are mine and do not necessarily reflect those of Oracle Corporation
+*/ Received on Sat May 24 1997 - 00:00:00 CDT

Original text of this message

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