Skip site navigation (1) Skip section navigation (2)

Re: Expression on an Expression alias

From: "Mike Ellsworth" <younicycle(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Expression on an Expression alias
Date: 2008-04-18 20:42:18
Message-ID: 219951fd0804181342l1742875bl9d1ee3446a82d74f@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On Fri, Apr 18, 2008 at 4:31 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Mike Ellsworth" <younicycle(at)gmail(dot)com> writes:
>  > The *effect* I'd like is to 'reuse' FV1, ~
>
>  > SELECT
>  > fv_test.acct_val AS acct_val,
>  > fv_test.time AS time,
>  > fv_test.i AS interest_rate,
>  > FV(fv_test.acct_val,fv_test.i,fv_test.time) AS FV1,
>  > FV1 *2 AS FV2,
>  > FV1 *3 AS FV3
>  > FROM    "hrcommu"."fv_test

< The SELECT
>  expressions are notionally computed in parallel and so can't refer
>  to each other.

Thanks -now I get it.

Wish I didn't have 15,000 of these little quicksand pits to ungnarl.

In response to

pgsql-novice by date

Next:From: Decibel!Date: 2008-04-19 19:01:05
Subject: Re: Database theory question
Previous:From: Tom LaneDate: 2008-04-18 20:31:57
Subject: Re: Expression on an Expression alias

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group