[SQL] generated dates from record dates - suggestions

2012-08-20 Thread Gary Stainburn
Hi folks. I've got a table with three dates which are populated from an external source. I then want to have a view with two calculated dates in it, e.g. if date_1 is null and date_2 is null then date_a=NULL if date_1 is not null and date 2 is null then date_a=date_1+'90 days' if date_1 date3

Re: [SQL] generated dates from record dates - suggestions

2012-08-20 Thread Oliveiros d'Azevedo Cristina
With a CASE ... WHEN statement? Best, Oliver - Original Message - From: Gary Stainburn gary.stainb...@ringways.co.uk To: pgsql-sql@postgresql.org Sent: Monday, August 20, 2012 1:17 PM Subject: [SQL] generated dates from record dates - suggestions Hi folks. I've got a table with