Re: using window-functions to get freshest value - how?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: "Massa, Harald Armin" <chef(at)ghum(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: using window-functions to get freshest value - how?
Date: 2009-11-20 11:15:35
Message-ID: 20091120111535.GB30145@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Nov 20, 2009 at 11:07:37AM +0100, Massa, Harald Armin wrote:
> Is it possible? How would the SQL utilizing WINDOW-functions look like?

there is no point in using window functions in here - simply use
"DISTINCT ON".

Best regards,

depesz

--
Linkedin: http://www.linkedin.com/in/depesz / blog: http://www.depesz.com/
jid/gtalk: depesz(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Cottenceau 2009-11-20 11:17:07 Re: Strange performance degradation
Previous Message Lorenzo Allegrucci 2009-11-20 11:00:28 Re: Strange performance degradation