Search Postgresql Archives

Column aliases in having or where for Postgres 8.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux