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: Histogram Procedure/Function

Re: Histogram Procedure/Function

From: Wolfgang Breitling <breitliw_at_centrexcc.com>
Date: Fri, 10 Mar 2006 11:48:12 -0800
Message-ID: <1142020092.4411d7fc2f1ed@webmail.hosting.telus.net>


Ethan,

not sure if it will server your purpose, but check out the ntile() analytic function.

Quoting Ethan Post <post.ethan_at_gmail.com>:

> I am looking for the easiest way to take a select and transform into some
> sort of histogram...
>
> select numeric_value from table_name;
>
> should come back as
>
> range total
> 1-10 30
> 11-20 100
> ...
>

-- 
regards

Wolfgang Breitling
Oracle 7,8,8i,9i OCP DBA
Centrex Consulting Corporation
www.centrexcc.com

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Mar 10 2006 - 13:48:12 CST

Original text of this message

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