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 -> SQL help please

SQL help please

From: <bhargav.desai_at_gmail.com>
Date: 14 Jan 2005 10:30:17 -0800
Message-ID: <1105727417.407358.168770@z14g2000cwz.googlegroups.com>


Hello Gurus,

I am trying to do following. I have a table that contains field table1.Blanace (Numeric). On this field I want to write a SQL query that gives me count and sum on ranges.

For example,

Balance Range      Count     Sum
200-300             5       $1255.00
100-200             2       $179.25
less then 100     456       $4464.25

Thanks in Advance Received on Fri Jan 14 2005 - 12:30:17 CST

Original text of this message

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