Re: Is this possible or am I on drugs :)

From: Tod McQuillin <devin(at)spamcop(dot)net>
To: shawn everett <everett(at)pgweb(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is this possible or am I on drugs :)
Date: 2000-11-28 06:48:46
Message-ID: Pine.GSO.4.21.0011280046420.8923-100000@sysadmin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 27 Nov 2000, shawn everett wrote:

> select colA, colB, colA+colB*0.4 as f1, colC, colC+colD*9 as f2 from table
> where date=SomeDateEnteredByTheUser;

CREATE VIEW v1 AS
select colA, colB, colA+colB*0.4 as f1, colC, colC+colD*9 as f2, date
from table;

SELECT colA, colB, f1, colC, f2
FROM v1 where date=SomeDateEnteredByTheUser;
--
Tod McQuillin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-11-28 06:50:28 Re: Is this possible or am I on drugs :)
Previous Message shawn everett 2000-11-28 06:38:04 Re: Is this possible or am I on drugs :)