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

From Andreas Kretschmer
Subject Re: using calculated column in where-clause
Date
Msg-id 20080617211041.GA11438@tux
Whole thread Raw
In response to using calculated column in where-clause  (Patrick Scharrenberg <pittipatti@web.de>)
Responses Re: using calculated column in where-clause  (Patrick Scharrenberg <pittipatti@web.de>)
List pgsql-sql
Patrick Scharrenberg <pittipatti@web.de> 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