Re: Aggregate Function to return most common value for a column - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Aggregate Function to return most common value for a column
Date
Msg-id 20090522214051.GN4466@alvh.no-ip.org
Whole thread Raw
In response to Re: Aggregate Function to return most common value for a column  (artacus@comcast.net)
Responses Re: Aggregate Function to return most common value for a column  ("Leif B. Kristensen" <leif@solumslekt.org>)
List pgsql-general
artacus@comcast.net wrote:

> Excellent observation Dave. Sometimes I can't see outside of the box I'm in.
> And at the time I was focusing on text so statistics was in another box. I've
> update post with final functions for mode(), median() and range().

Hey, if you want to add your functions to http://wiki.postgresql.org/wiki/Snippets ,
that would be great.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: David Fetter
Date:
Subject: Re: Aggregate Function to return most common value for a column
Next
From: "Leif B. Kristensen"
Date:
Subject: Re: Aggregate Function to return most common value for a column