Re: Distribution of results - Mailing list pgsql-sql

From Jorge Godoy
Subject Re: Distribution of results
Date
Msg-id 87r6wgidhq.fsf@gmail.com
Whole thread Raw
In response to Distribution of results  ("Raghuraman K" <raghuramank@aztecsoft.com>)
List pgsql-sql
"Raghuraman K" <raghuramank@aztecsoft.com> writes:

> Hi,
> 
>    I have a table like this: create table(xyz char(10), answer number(4)).  There are a lot of rows in this table. I
amlooking at a query that will help me represent the distribution of data records based on the column answer. For
example,we may take that the highest entry for answer column is 90 and the lowest is 2 and there are 1000 records. I am
lookingat a query that will tell how the 1000 records are distributed between the highest and lowest answer (in this
casebetween 90 and 2).  Can anyone please help?
 
> 

I believe this isn't hard if you use a statistical function.  You can have one
fairly quickly with PL/R. 

-- 
Jorge Godoy      <jgodoy@gmail.com>


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Nested select
Next
From: imad
Date:
Subject: Re: Composite Types