equivalent in postgres of over(partition) function in db2

From: "vinita bansal" <sagivini(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: equivalent in postgres of over(partition) function in db2
Date: 2005-02-23 16:51:29
Message-ID: BAY20-F38AA41D7603E051C3648D4CB630@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi,

I have the following query in db2:

"insert into xyz (a,b) select 10, MIN(CM_LEDGERITEM.tril_gid) OVER(PARTITION
BY CM_LEDGERITEM.MMPAYEE, CM_PROMOTION.MMCOMPTYPE, CM_LEDGERITEM.MODEL) from
...."

I am not able to find a corresponding thing for min(...) over(partition by
col1, col2, col3..)
in postgres.What will be its equivalent in postgres??

Regards,
Vinita Bansal

_________________________________________________________________
Manage information better. Optimise your tasks.
http://www.microsoft.com/india/office/experience/ Experience MS Office
System.

Browse pgsql-general by date

  From Date Subject
Next Message Eric Brown 2005-02-23 16:54:13 reltuples < # of rows
Previous Message Tom Lane 2005-02-23 16:47:13 Re: Recovering db from cracked server