Column aliases in having or where for Postgres 8.3 - Mailing list pgsql-general

From Prafulla Tekawade
Subject Column aliases in having or where for Postgres 8.3
Date
Msg-id BANLkTimcU33BmY0WqfAVOA0FbD=BV7XtcA@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi,

Anyone knows if I can use column aliases in having condition?
Something like this.
                                                                                                                                  
pgdb=# select sum(c_acctbal) as p from customer having p > 1000;                                                                                                                                           
select sum(c_acctbal) as p from customer having p > 1000;                                                                                                                                                  
ERROR:  column "p" does not exist                                                                                                                                                                          
LINE 1: select sum(c_acctbal) as p from customer having p > 1000;                                                                                                                                          
                                                        ^            

--
Best Regards,
Prafulla V Tekawade

pgsql-general by date:

Previous
From: "Paolo Saudin"
Date:
Subject: SELECT to_timestamp crash PostgreSQL 9.1beta1
Next
From: Robert James
Date:
Subject: Table with active and historical data