Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle l »

Histogram Procedure/Function

Ethan Post

2006-03-10

Replies:

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
...
 
Guessing I could create a temp table and actually have oracle generate a histogram for me then pull that back but wondering if there is a simple function or procedure I can use. Thinking about this as I type so I apogise if the answer turns out to be somewhat obvious.
 
Thanks,
Ethan
 
 
©2008 dba.5341.com - Jax Systems, LLC, U.S.A.