May be it's my ignorance about sql ...but why cannot i use alias name of a column in a where clause?
# select key as cc from mytable where cc > 0;ERROR: Attribute 'cc' not found
--
Giorgio
-----------------------------------------