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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: Expression on an Expression alias



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.



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group