alias question - Mailing list pgsql-general

From Ceasar
Subject alias question
Date
Msg-id 3C18488A.E20EDF9F@hotmail.com
Whole thread Raw
Responses Re: alias question
List pgsql-general
I was wondering if you could use an alias to do math calculations:  for
example,

select Bank1,
(var1 + var2) as calc,
calc*100 as var2

From......

I keep getting this message that says that calc is not in any of the
tables in the From statement. Is it possible to use a alias (calc) to
make further calculations?  If so, how?  Any help would be greatly
appreciated.

ocerda@hotmail.com


pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: initdb, separate fileystem?
Next
From: "Huang Ming"
Date:
Subject: Re: [CORE] report a bug