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: generated dates from record dates - suggestions
Date: Tue, 21 Aug 2012 13:15:58 +0100
Message-ID: <201208211315.58332.gary.stainburn@ringways.co.uk> (raw)
In-Reply-To: <k0vqjd$obp$1@reversiblemaps.ath.cx>
References: <201208201317.46588.gary.stainburn@ringways.co.uk>
	<k0vqjd$obp$1@reversiblemaps.ath.cx>

On Tuesday 21 August 2012 12:14:53 Jasen Betts wrote:
> > What's the best way to do this?
>
> CASE looks good.
>
> > I know it's a quite open question but I'm interested to hear different
> > responses
>
> "date_b" on line three, is that a typo? if not how am i to interpret
> it?

The table contains date_1, date_2 and date_3. The resulting view needs to 
contain date_1, date_2, date_3, date_a and date_b where date_a and date_b are 
calculated based on the first three (plus a text field).



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




view thread (6+ messages)  latest in thread

Message-ID: <201208211315.58332.gary.stainburn@ringways.co.uk>
Permalink:  ../201208211315.58332.gary.stainburn@ringways.co.uk/
Also on:    postgresql.org/message-id/201208211315.58332.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: generated dates from record dates - suggestions
  In-Reply-To: <201208211315.58332.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