PostGresql Selecione como e FWHWERE por este campo
Column alias is not supported in WHERE or HAVING clauses.
Splendid Stoat
Column alias is not supported in WHERE or HAVING clauses.