Re: Distribution of results

From: Jorge Godoy <jgodoy(at)gmail(dot)com>
To: "Raghuraman K" <raghuramank(at)aztecsoft(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Distribution of results
Date: 2006-11-06 19:25:37
Message-ID: 87r6wgidhq.fsf@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Raghuraman K" <raghuramank(at)aztecsoft(dot)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 am looking 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 looking at a query that will tell how the 1000 records are distributed between the highest and lowest answer (in this case between 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(at)gmail(dot)com>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message imad 2006-11-06 19:34:12 Re: Composite Types
Previous Message Tom Lane 2006-11-06 19:21:59 Re: Nested select