Postgres Error Aggregate Functions In Excel