PostgreSQL: using a calculated column in the same query PostgreSQL: using a calculated column in the same query postgresql postgresql