Re: How to handle a group query

From: Nigel Metheringham <Nigel(dot)Metheringham(at)dev(dot)intechnology(dot)co(dot)uk>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to handle a group query
Date: 2004-11-05 11:32:49
Message-ID: 1099654369.2642.5.camel@angua.localnet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thu, 2004-11-04 at 14:15 -0500, Tom Lane wrote:
> If you don't mind using a Postgres-specific construct, SELECT DISTINCT ON
> works nicely for this. See the "weather reports" example in the SELECT
> reference page.

It took a few minutes for what you were suggesting to click, but now I
am completely blown away by that - its *so* much simpler.

Cheers
Nigel.
--
[ Nigel Metheringham Nigel(dot)Metheringham(at)InTechnology(dot)co(dot)uk ]
[ - Comments in this message are my own and not ITO opinion/policy - ]

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Kjetil Haaland 2004-11-05 12:00:23 varchar in c extension function
Previous Message Terry Lee Tucker 2004-11-05 11:22:04 Re: Question on locking