pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gary Stainburn <gary.stainburn@ringways.co.uk>
To: pgsql-sql@postgresql.org
Subject: Re: SOLVED - date range to set of dates expansion
Date: Thu, 19 Jan 2012 16:10:15 +0000
Message-ID: <201201191610.15842.gary.stainburn@ringways.co.uk> (raw)
In-Reply-To: <201201191559.27698.gary.stainburn@ringways.co.uk>
References: <201201190713.34333.gary.stainburn@ringways.co.uk>
	<201201191516.16802.gary.stainburn@ringways.co.uk>
	<201201191559.27698.gary.stainburn@ringways.co.uk>

Sorry for using the list as a scratch-pad for my brain.

select aid, asid, 
generate_series(asdate-'1970-01-01'::date,
afdate-'1970-01-01'::date)+'1970-01-01'::date as adate, 
acomments 
from availability;


Has done the trick.
-- 
Gary Stainburn
Group I.T. Manager
Ringways Garages
http://www.ringways.co.uk 



Message-ID: <201201191610.15842.gary.stainburn@ringways.co.uk>
Permalink:  ../201201191610.15842.gary.stainburn@ringways.co.uk/
Also on:    postgresql.org/message-id/201201191610.15842.gary.stainburn@ringways.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: gary.stainburn@ringways.co.uk
  Subject: Re: SOLVED - date range to set of dates expansion
  In-Reply-To: <201201191610.15842.gary.stainburn@ringways.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox