Re: using calculated column in where-clause - Mailing list pgsql-sql

FromAndreas Kretschmer
SubjectRe: using calculated column in where-clause
Date
Msg-id20080617211041.GA11438@tux
Whole thread Raw
In response tousing calculated column in where-clause  (Patrick Scharrenberg <[email protected]>)
ResponsesRe: using calculated column in where-clause
Listpgsql-sql
Patrick Scharrenberg <[email protected]> schrieb:
> Something like this
> select a, b , a*b as c from ta where c=2;
> 
> But postgresql complains, that column "c" does not exist.
> 
> Do I have to repeat the calculation (which might be even more complex

yes.


Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


pgsql-sql by date:

Previous
From: Patrick Scharrenberg
Date:
Subject: using calculated column in where-clause
Next
From: "Scott Marlowe"
Date:
Subject: Re: using calculated column in where-clause