Re: generated dates from record dates - suggestions

From: Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: generated dates from record dates - suggestions
Date: 2012-08-21 10:31:49
Message-ID: 201208211131.49999.gary.stainburn@ringways.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tuesday 21 August 2012 02:01:55 Johnny Winn wrote:
> I would define a function and use it to abstract the expected behavior. It
> would appear that there are several conditions so this abstraction would
> provide for both usability and maintainability.
>
> - Johnny

Johnny,

This was what I was wondering, and was looking for suggestions / best
practices on how to do this.

I had first thought of embedding case/when statements in the view but it could
easily become unweildy

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jasen Betts 2012-08-21 11:14:53 Re: generated dates from record dates - suggestions
Previous Message Oliveiros d'Azevedo Cristina 2012-08-20 14:19:58 Re: generated dates from record dates - suggestions