Breakdown results by month - Mailing list pgsql-sql

From Henry Ortega
Subject Breakdown results by month
Date
Msg-id 2bffcc3305080211342745b1ab@mail.gmail.com
Whole thread Raw
Responses Re: Breakdown results by month  (Jeff Boes <jeff@endpoint.com>)
Re: Breakdown results by month  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-sql
I have the ff table:

id       |    total    |     effective        |    end_date
john          6              01-01-2005        02-28-2005
john          8              03-01-2005        06-30-2005

How can I return:
id       |    total    |     effective        |    end_date
john          6              01-01-2005        01-31-2005
john          6              02-01-2005        02-28-2005
john          8              03-01-2005        03-31-2005
john          8              04-01-2005        04-30-2005
john          8              05-01-2005        05-31-2005
john          8              06-01-2005        06-30-2005

Any help would be appreciated. Thanks


pgsql-sql by date:

Previous
From: daq
Date:
Subject: Re: [NOVICE] Make year 01/01/0001 but leave timestamp alone
Next
From: Kyle Bateman
Date:
Subject: Trigger on select?