On Fri, Aug 22, 2008 at 02:30:46PM -0700, Ruben Gouveia wrote: > Since there is no current solution to ranking values in pl/pgsql as > the rank() over (partition by... that there is in oracle i am hoping > someone can help me out here. It seems likely that the windowing functions patch will get into 8.4, so don't put too, too much effort into this. :) Cheers, David. -- David Fetter <david@xxxxxxxxxx> http://fetter.org/ Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter Skype: davidfetter XMPP: david.fetter@xxxxxxxxx Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate