I have the same question as #1895500, but with PostgreSQL not MySQL.
How can I define a view that has a calculated field, for example:
(mytable.col1 * 2) AS times_two
... and create another calculated field that's based on the first one:
(times_two * 2) AS times_four
...?