Creating a selective aggregate ??

From: "Najib Abi Fadel" <nabifadel(at)usj(dot)edu(dot)lb>
To: "developPost" <pgsql-hackers(at)postgresql(dot)org>
Subject: Creating a selective aggregate ??
Date: 2004-06-30 06:39:29
Message-ID: 001c01c45e6d$01f47260$9d64a8c0@najib
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hi
i have a table of dates let's say:

1/1/2004
8/1/2004
15/1/2004
29/1/2004
5/2/2004
12/2/2004

I am searching for a way to have the minimum date and maximum date for dates seperated by one week whitout gaps between them.
which will give the following output:
1/1/2004 , 15/1/2004
29/1/2004 , 12/2/2004

Any ideas??
Could this be done with aggregates ??

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2004-06-30 06:49:18 Re: PITR Error Message assistance
Previous Message Joe Conway 2004-06-30 05:13:57 Re: grant execute on many functions